title: PowerShell Where-Object like multiple string values
body: <p>I'm using the following in a do-until block to loop until a specified Exchange Online migration status is present:</p>
  
  <pre><code>(Get-Migrationbatch -Identity $MigrationBatchName | Where {$_.Status -like "Completed" -or "CompletedWithErrors" -or "Corrupted" -or "Failed" -or "Stopped"})
  </code></pre>
  
  <p>However, the above still returns a job with the status of "Syncing" and so continues the script regardless.</p>
  
  <p>I've tried -match, -eq but still the same.</p>
  
  <p>What am I missing?</p>