The WinRM Shell client cannot process the request. The shell handle passed to the WSMan Shell function is not valid. The ...

The WinRM Shell client cannot process the request. The shell handle passed to the WSMan Shell function is not valid.
The shell handle is valid only when WSManCreateShell function completes successfully. Change the request including a valid shell handle and try again.