I am trying to write a batch file which will add a new file printer my batch file is as follows:

cd windows
cd system32
cscript prnport.vbs -a -r "C:\TEMP\TiffImporterPrinter\TiffTemp.prn"
cscript prnmngr.vbs -a -p "TiffImporter (Word)" -m "HP LaserJet 5000 Series PCL" -r "C:\TEMP\TiffImporterPrinter\TiffTemp.prn"
cd \

the problem lies in the prnport line I get the error message:

Unable to parse command line. Error 0x1A8 Object required

the prnmngr line works fine if I create the port in the add printer wizard beforehand but of course fails if the port doesn't exist.