Select from 2 Arrays in a Foreach
<p><code>$foo</code> has a list of 50 userids.</p>

<pre><code>$foo | foreach {
  Get-MailboxFolderPermission -Identity ($_.alias + ":\calendar") 
} | select user,accessrights
</code></pre>

<p>How can I select the userid in <code>$foo</code> and then also have <code>user</code>, <code>accessrights</code> in the same line?  The resulting command above just lists out the user and accessrights to the userid in <code>$foo</code>, but never the actual userid, so I can't tell which userid matches up to which user and the accessrights to that userid's calendar.</p>