Powershell Update Global Variable In Function