winCMD failed

I get the error
win_cmd_exec: WinCMD Connect failed
when running authenticated scripts which execute powershell commands