title: How to connect PowerShell with CRM online?
body: <p>I am writing a PowerShell script where it needs to be connected to CRM online.</p>
  
  <p>I can connect to CRM using <code>Connect-CrmOnline</code> where it asks for credentials using a login box. I want to automate it. Please guide on how to do it.</p>
  
  <p>Is there a way to connect using connection string? Please share sample code/ script. I am new to PowerShell.</p>
  
  <p>I am using <code>Microsoft.Xrm.Data.PowerShell</code></p>
  
  <p>Thank you.</p>