Set-ExecutionPolicy Unrestricted
$exadmin='tangx@contoso.com'
$cred=Get-Credential $exadmin
$sess=New-PSSession –ConfigurationName microsoft.exchange -Credential $cred -AllowRedirection -Authentication basic -ConnectionUri https://ps.outlook.com/powershell
Import-PSSession $sess