I have a UPS Thermal 2844 printer connected to a windows 10 pc called LENOVO-SHIPPING. All I get when I run the script is \\LENOVO-SHIPPING\\UPS Thermal 2844.
I am running your php script from another machine on the network running wamp server. The pc that the printer is connected to via USB is not running php. However this PC is on the same network and I have access to it.
Do I need to install the printer running php perhaps?