Powershell Increment Global Variable In Function