The WinRM client cannot process the request because the CustomRemoteShell URI specified is invalid. CustomRemoteShell URI ...

The WinRM client cannot process the request because the CustomRemoteShell URI specified is invalid.
CustomRemoteShell URI should start with WinRM shell resource URI prefix: "http://schemas.microsoft.com/wbem/wsman/1/windows/shell".
The URI should not contain invalid characters including '*', '?', white spaces and tabs.
The CustomRemoteShell URI cannot be longer than 1023 characters.