Powershell Increment Global Variable In Function In Python