If the printer is a PostScript printer, you can use a URI like the following to install it.
socket://<ip>:9100