Program/Script: powershell
arguments (optional): -command “.
‘C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1’;
Connect-ExchangeServer -auto ; c:\myscriptsfolder\myscript.ps1 “
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-noexit -command “. ‘C:\Program Files\Microsoft\Exchange
Server\V15\bin\RemoteExchange.ps1′; Connect-ExchangeServer -auto
-ClientApplication:ManagementShell “