Powershell Get Substring Python Function Parameters