Everyone should have a pensieve, and this is mine

Getting started with Office 365 and PowerShell

Before trying to use PowerShell with Office 365 certain libraries need to be installed on the client machine, these libraries are dependent on OS, for Windows 7 additional libraries are required before proceeding.