A simple PoSH function to connect your Powershell session to Office 365.
This little sript will set up a connection to Azure AD and Exchange online by using the open-msolconnection cmdlet. It will ask for you credentials when run. Simply place this script in your Powershell profile to be able use the cmdlet without any further actions.