title: Powershell pipe variables into get-user command
body: <p>I am trying to pipe a list of email addresses into a get-user command in powershell</p>
  
  <pre><code>$email = get-content -path "c:\temp\file.csv" get-user -indentity $email | select-object userprincipalname,department,phone,name | format-table | out-file c:\temp\file.txt
  </code></pre>