Command line:

[program_name] ["\\server_name\printer_name"] ["text to print"]

Example:

Printing.exe "Printer 1" "Print line test"