Powershell: Exchange Online commands
Most used commands for Exchange Online
Install Exchange Online powershell module
Install-Module -Name ExchangeOnlineManagement
Connect to Exchange Online
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName admin@company.onmicrosoft.com
Get deleted mailboxes
Source: