I attempted setting it to a $task variable along with your extra switches and no luck... never does the connect.
Any other ideas?
Again this works in both a powercli window and a plain posh window but will not work in a start-job. A connect-viserver in a start job works fine.