Powershell Get Substring Python Example