You can run the command via AD PowerShell directly:
$msolcred = get-credential
connect-msolservice -credential $msolcred
To purge the deleted user accounts:
get-msoluser –returndeletedusers -maxresults 100000 | remove-msoluser -removefromrecyclebin -force
In Exchange 2010 Service Pack 1 (SP1) Exchange introduced a feature that allows Outlook 2007 and Outlook 2010 clients to automatically map to any mailbox to which a user has Full Access permissions. If a user is granted Full Access permissions to another user’s mailbox or to a shared mailbox...
How to do manual synchronise between Active Directory DIRSYNC and Office 365 using PowerShell?
Open up Windows PowerShell, and then invoke the following command:
FinishedPS C:\Program Files\Microsoft Azure AD Sync\Bin> .\DirectorySyncClientCmd.exe delta