Hi,
Q&A currently supports the products listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).
For Exchange Online you can use the following PowerShell modules:
https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
For an Exchange Server hosted in Azure, you can use the following PowerShell module:
https://learn.microsoft.com/en-us/powershell/exchange/exchange-management-shell?view=exchange-ps
You can also reach out to more experts in the dedicated Office 365 forum over here:
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365Admin
(Please don't forget to accept helpful replies as answer)
Best regards,
Leon