To change the orientation of printer "HP LaserJet" to landscape, you could run the following command:
SetPrn "HP LaserJet" /O=2
To change the paper format of printer "HP LaserJet" to A4 you could run the following command:
SetPrn "HP LaserJet" /F=9
or alternatively
SetPrn "HP LaserJet" /F=A4
To set the remote printer's "\\Server\HPLaserJ" paper source to envelope you could run the following command:
SetPrn "\\Server\HPLaserJ" /S=5