Powershell Get Substring Python Function Documentation