The function imports an Exchange Online PowerShell session with specified credentials. It provides options for re-using the credentials by saving the credentials in a global variable and connecting to a specifing O365 tenant by an optional parameter. It was built to make acccess to Exchange Online easier and faster.
For more information about it you can follow the Link below:
This script is tested on these platforms by the author. It is likely to work on other platforms as well. If you try it and find that it works on another platform, please add a note to the script discussion to let others know.