title: Get microsoft account name for current user in powershell
body: <p>How can I get the Microsoft account username for the current user in PowerShell? I see how to get the local username (e.g. $env:username and others like it), but not the Microsoft account name (which is typically an email address).
  Thank you for any help!
  Ari</p>