You can execute powershell scripts remotely (doesn't matter where they reside) provided you have enabled remoting in Powershell (WinRM) and you provide the appropriate credentials to perform the operation on the remote machine or are using an account that has appropriate permissions.
How to run remote commands is documented here.