You still have not explained why you have to do this, to any one. If youy do not give a proper reason as to why you want to switch off a printer, I would assume you plannig to write something malicious, and close this thread. So, I ask one more time nicely, why do you need this ¿
im making a program that controls printing jobs, delete queue jobs, giving printing permission to clients in the network. selecting who can print in the host printer.
and after all the work and we will now close the room, i will click a button to turn off the printer.