VMware Site Recovery Manager remote Powershell script

You have a PowerShell script designed to run locally, but you need to execute it on remote computer via another product such as VMware Site Recovery Manager . You need to keep all your scripts in central repository but you need to execute them on multiple servers. Does this sound familiar? Here’s quick and nice trick: