What is $Printer ?

It should be a:

"String that specifies the fully qualified name of the printer to set as the default printer. Note that if the printer involved was connected to using AddPrinterConnection, you must include both the servername and the sharename."

[quoting the manual here]
_________________________