結果 : powershell wait for function to complete