title: Disconnect-ExchangeOnline in a script
body: <p>I developed a PowerShell script that uses EXO V2 module. At the beggining, I connect to Exchange Online via:</p>
  
  <pre><code>Connect-ExchangeOnline -Credential $Credential
  </code></pre>
  
  <p>after my stuff is done, I'd like to disconnect from Exchange Online, but</p>
  
  <pre><code>Disconnect-ExchangeOnline
  </code></pre>
  
  <p>asks for confirmation. Also adding -Confirm switch seems not changing the behavior.
  I'd like to schedule the script, so confirmation is a problem. Is there any way to disconnect without confirmation ? Or can I simple not disconnect ? I found this possibility somewhere, but I've concerns regarding security issues when leaving an open connection.</p>