Adding printer and port to via toolkit

Hi

Has anyone tried adding printer driver including port which will be ip. I have a few simple line which work independent of the toolkit just fine and the driver is in driver store. However through the toolkit adding printer port etc fails.

Can someone help me out or point me in the right direction.

   Add-PrinterDriver -Name "NAME HERE"
    Add-PrinterPort -Name "NAME HERE" -PrinterHostAddress "IP ADDRESS HERE"
    Add-Printer -Name "NAME HERE" -DriverName "HERE" -PortName "HERE"