To create WinRM session you can refer to the links below.
As it doesn't seem to be a powershell issue I'll remove the powershell tag. Thanks for your understanding.
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.