We have a powershell script which is on our server. Trying to figure out how to use Invoke-Command with the -ComputerName to run it remotely, but when I run:
Invoke-Command - ComputerName XXXX -FilePath YYYY
It appears that Invoke-Command is looking for a local file. How do I specify that I want to remotely run a script which is only available on the remote machine?