I found a similar issue on the Microsoft forum:
It looks like the Execution Policy was not set correctly, please run Set-ExecutionPolicy RemoteSigned
before your test.
Also check if Basic client authentication is still enabled using: winrm get winrm/config/client/auth
– Remold