結果 : powershell function not updating global variable