$UserCredential = Get-Credential (Enter the global admin credentials in the pop-up)
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
If you have MFA enabled on the admin account, you may use the PowerShell from below path :
Exchange Admin Center > Hybrid > Download the Exchange Online PowerShell Module supports multi-factor authentication.
Get-CalendarDiagnosticLog – This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other
Get-CalendarDiagnosticAnalysis – This cmdlet is available only in on-premises Exchange.
Get-CalendarDiagnosticObjects – This cmdlet is available only in the cloud-based service.
To export these results, you will have to use the Export Switch as per the respective below articles: