There are a few requirements to this process. The code for the script dropped significantly when I went to this approach. I finally decided to do it via group policy.
I attempted to use both remote sessions and the invoke-command cmdlet. The actual method in the WMI class Win32_Printer will not let you set the default printer from a remote client. I’ve been working through different types of PowerShell remoting with no success. The original question from class is how to set the default printer for your users.