Hi.
I wrote the script that install some updates to the computer. I tested it locally and want to run it remotely with Invoke-Command.
I'm running it this way
$scriptpath = "\\"+$computer+"\somepath\1installAIO.ps1"
Invoke-Command -ComputerName $computer -Filepath $scriptpath
Script is running well but when it reaches this point it hangs forever.
Start-Process "C:\somepath\1 - NDP47-KB3186497-x86-x64-AllOS-ENU.exe" -ArgumentList "/quiet", "/norestart" -Wait
Process is visible in taskmgr, but it definetly need some interaction. I think that something is wrong with /quiet and -Wait, but i can't get why.
The question is how to make this script work remotely as well as it works locally.