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: