Powershell Increment Variable In Function Python Code