Forum Discussion
CS_HelpDesk
2 years agoGoTo Contributor
Upload an .EXE file. You must set the file to run silently and without user input.
$arguments = $null
$file = $resolve_Files[0];
if ($arguments)
{
$process = Start-Process $file -Args $arguments -Wait -NoNewWindow -PassThru;
}
else
{
$process = Start-Process $file -Wait -NoNewWindow -PassThru;
}
Exit $process.ExitCode