Connect to Exchange powershell remotely using the following commands
$exchCred=Get-Credential
$exchUri=”http://servername/powershell”
$exchSession=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $exchUri -Authentication Kerberos -Credential $exchCred
Import-PSSession $exchSession
$exchCred is the credentials used to connect
$exchUri is the Uri of the Exchange server powershell virtual directory. EG: http://exchange.anonit.net/powershell
To remove the session at the end, use Remove-PSSession $exchSession
See the powershell script here
Reference:
https://community.spiceworks.com/scripts/show/3956-connect-to-exchange-powershell-remotely