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

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