|Save the file as something.bat.|
Open a command prompt and start the file
What kind of errors did you get?
You do need the names of printers and the ip addresses and ports they use.
This is, what a script can't figure out automatically.
As you can see in the command, you also need to have to drivers files in a directory, so that you can set the needed .inf file.
Then you might use a loop to change variables, with the printer name, ip, port a.s.o.
So you see, you have to learn a little bit of programing batch files.
Please send a reply, if you solved the problem !!!