Install this module to gain access to common 365 commands to simplify Office 365 management. https://www.powershellgallery.com/packages/Office365Toolkit/
Install the Microsoft Online Services Sign-In Assistant for IT Professionals: https://www.microsoft.com/en-us/download/details.aspx?id=41950
Please install the MS Online PowerShell module using the following command: Install-Module MSOnline
Install from the PowerShell Gallery using the following command: Install-Module -Name Office365Toolkit