Rework ExecCommand()

This commit is contained in:
Yorick Barbanneau 2018-04-10 15:35:41 +02:00
parent 0529b16387
commit 1739c2f800

View file

@ -598,8 +598,7 @@ function ExecCommand {
return
}
try {
Start-Process -wait -filepath $path -ArgumentList $args.split(" ")
Write-Host -ForegroundColor Green "done"
Start-Process -NoNewWindow -wait -filepath $path -ArgumentList $args
}
catch {
Write-Host -NoNewLine -ForegroundColor Red "Error`n`t"