make powershell wait till command complete