Gives access to login to Exchange for PowerShell commands
$O365Cred = Get-Credential sedmonds@teachfirst.org.uk
$O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $O365Session -AllowClobber
Change the email address in 'Get-Credential' to your email then run the script and it will open a window asking for your login password.