title: Authenticate powershell script using AccessToken
body: <p>I have a release pipeline which is calling a PowerShell script and it is having 'Select-AzureSubscription' statement (In a loop I have to assign different subscriptions as current and do some process). When it runs, I am getting the below error as I have not added 'Add-AzureAccount'.</p>
  <p>Select-AzureSubscription : The subscription name  doesn't exist.</p>
  <p>Is there any way to authenticate or execute Add-AzureAccount using the Pipeline access token.</p>
  <p>Code:-</p>
  <pre><code>Select-AzureSubscription -SubscriptionName $Subscription -Current 
  CloudServices = Get-AzureService | select ServiceName 
  </code></pre>