There is a powershell script located on the C:\. The script executes a .msu file.
Invoke-Command -ComputerName [name] -FilePath C:\file.txt doesn't work because it checks locally on your system for the file to pass over to execute.
I want a powershell script that executes another remote powershell script remotely.
Invoke-Command -ComputerName <Computername> -credential <credentials> -FilePath $scriptPath\file.ps1invoke-command { powershell.exe -noprofile -executionpolicy Bypass c:\myscript.ps1 } -computername box1