The WinRM client cannot process the request. An invalid parameter was specified for the WSManSendShellInput API call. streamData ...

The WinRM client cannot process the request. An invalid parameter was specified for the WSManSendShellInput API call. 
streamData parameter should be specified in binary format using WSMAN_DATA_TYPE_BINARY type. 
Change the invalid parameter and try the call again.