Make sure WINRM is configured on the target environments servers. Just run the
Winrm quickconfig command either on command prompt or in power shell console.
For deployment using TFS release Management, the target environment servers should allow remote execution of scripts.
The Enable–PSRemoting cmdlet configures the computer to receive Windows PowerShell remote commands that are sent by using the WS-Management technology. On Windows Server® 2012, Windows PowerShell remoting is enabled by default.