title: Add multiple attributes to user account
body: <p>Good afternoon,
  i've trawled the usual places, here, MS, Scritping guy, Month of lunches etc. to try and answer to my problem.  I have a list of users identified by email address and i would like to change their currently blank attributes with the information below.<br>
  so:</p>
  
  <ul>
  <li>33 = GLOBAL    </li>
  <li>34 = 4 </li>
  <li><p>35 = SMTP:User@NewDomain.com</p>
  
  <pre><code>Get-ADUser -filter {(Mail -like 'User@OldDomain.com')} -Properties * | Set-ADUser -Replace @{$_.MSExchExtensionAttribute33="GLOBAL"; $_.MSExchExtensionAttribute34="4"; $_.msExchExtensionAttribute35="SMTP:User@NewDomain.com"};
  </code></pre></li>
  </ul>
  
  <p>However, when i run the commands i receive this error:</p>
  
  <pre><code>A null key is not allowed in a hash literal.
  At line:1 char:98
  + ... roperties * | Set-ADUser -Add @{$_.MSExchExtensionAttribute34="4"; $_ ...
  +                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidOperation: (System.Collections.Hashtable:Hashtable) [], RuntimeException
  + FullyQualifiedErrorId : InvalidNullKey
  </code></pre>
  
  <p>i've used variations on this code in the past without issue to replace attributes that already have values in place so i wonder if that's part of the error. </p>
  
  <p>Any help would be greatly appreciated.</p>