Have you found a solution to solve your problem. I've the same when executing shell command to drive printers with "lpoptions" or "lpstat".
I need to get the list of printers, the default printer and change the default printer.
It run without problem. So I couldn't get why did you have the error.