Powershell Find Index Of String Python Functions