title: PowerShell ForEach statement failing
body: <p>I am having an issue with a ForEach statement which I am sure it super simple to fix but so far no luck.</p>
  <p>The ForEach runs great against each item, but stops when an error is encountered. I need it to just continue. Does anyone have any ideas? I have added 'Continue' but that doesn't seem to do anything.</p>
  <p>Thanks!</p>
  <pre><code>
  $objects | ForEach-Object -Process {
      try { 
  $ErrorActionPreference = &quot;Continue&quot;          
  $extensionproperty_all = Get-AzureADUserExtension -ObjectID $_.UserPrincipalName
  $extensionproperty_workemail = $extensionproperty_all.get_item(&quot;extension_appID_WorkDay_WorkEmail&quot;)
  Set-AzureADUser -objectid $_.UserPrincipalName -OtherMails $extensionproperty_workemail
  Write-output &quot;email updated for $extensionproperty_workemail&quot;}
      catch {
      Write-Warning &quot;Error encountered with 1 or more entries&quot;
      Continue}
  }
  </code></pre>