title: Username/Password login related error by using Powershell-Core with C#.net core-3.1
body: <p>I am trying to call a power-shell script that is using <code>New-AzSubscriptionAlias</code>(that is creating a new EA subscription) from C#.net-core3.1.</p>
  <p>I am not using SP for calling that power-shell script in C# and below error is coming...
  <a href="https://i.stack.imgur.com/ma3zY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ma3zY.jpg" alt="enter image description here" /></a></p>
  <p>Any solutions , <strong>in C#.net how to call a Powershell-script without SP</strong>?
  Below Error msg as &quot;Connect-AzAccount: Username + Password authentication is not supported in PowerShell Core. Please use device code authentication for interactive log in, or Service Principal authentication for script log in.&quot;</p>
  <p>Many Thanks,</p>