Powershell Get Part Of String In Python Function