Try using in
shell "net use lpt1 \\server\printer"
in your script