Powershell Script Wait For Command To Finish