title: How to handle multiple tenants in Azure subscriptions using PowerShell
body: <p>I have three subscription accounts in Azure and am using java to execute PowerShell commands for a remote app. </p>
  
  <p>My PowerShell version:</p>
  
  <pre><code>Major  Minor  Build  Revision
  -----  -----  -----  --------
  4      0      -1     -1
  </code></pre>
  
  <p>I have the following issues:</p>
  
  <ol>
  <li>I need to be able to work simultaneously in PowerShell from java on
  different Azure accounts.</li>
  <li>The Select-AzureSubscription command sets the account as default and current.  However, if I use -Default on Select-AzureSubscription it says -Default is deprecated. </li>
  <li>After selecting a subscription I need all commands there after to
  work on the selected subscription.</li>
  </ol>
  
  <p>How should I maintain these to work simultaneously on different subscriptions?</p>