From 1739c2f8005fbc224efc5d4c502059cd432ae015 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 10 Apr 2018 15:35:41 +0200 Subject: [PATCH] Rework ExecCommand() --- cleanW10.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 357bca3..8bd87d9 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -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"