Let's say I have a ps1 script locally, and I need to run a function on the remote host.
Does this library provide a way to run said function in the remote in a way similar to how "Invoke-Command -ComputerName ServerName -FilePath c:\Scripts\scriptname.ps1" would in powershell?
Or do I need to copy the script into the host first, then use RunPSWithContextWithString to run it?
Greetings. Didn't know where to ask.
Let's say I have a ps1 script locally, and I need to run a function on the remote host.
Does this library provide a way to run said function in the remote in a way similar to how "Invoke-Command -ComputerName ServerName -FilePath c:\Scripts\scriptname.ps1" would in powershell?
Or do I need to copy the script into the host first, then use RunPSWithContextWithString to run it?