Getting email app connectivity using the ExchangeOnlineManagement Module for PowerShell.

ACCESS TYPE PS PROPERTY
Outlook on the web OWAEnabled
Outlook desktop (MAPI) MAPIEnabled
Exchange web services EwsEnabled
Mobile (Exchange ActiveSync) ActiveSyncEnabled
IMAP ImapEnabled
POP PopEnabled
Authenticated SMTP SmtpClientAuthenticationDisabled

PowerShell Code

Note: This code requires the Exchange Online Management module.