I will break it down in to smaller bits and try it.

I can connect to them if I browse to the server and r-click, connect that works fine but not as a script using addprinterconnection.