Issue:
Added two functions to Shared in case any script needs a connection to M365.
One function for Exchange Online another function for AzureAD
Reason:
Unify the way we connect to M365.
Fix:
Both functions will do the following:
Verify if the module is installed, if not, install it after request confirmation.
Verify if the module is loaded, if not, load it.
Lastly, verify if any connection is present (we verify only one connection is present); if none, we offer to connect.
Important: we do not disconnect at anytime we just verify if we have an active session
Issue: Added two functions to Shared in case any script needs a connection to M365. One function for Exchange Online another function for AzureAD
Reason: Unify the way we connect to M365.
Fix: Both functions will do the following: