Powershell Find Index Of String Python Methods