結果 : powershell wait until function finishes