Gary writes about how to load the CSOM assemblies into memory, and then introduces a simple helper function that you can utilize to quickly get connected to a SharePoint Online Site Collection.
Read the article at: http://www.itunity.com/article/connecting-spo-csom-api-powershell-1038
Tags ITUnity; PowerShell; SharePoint Online