Microsoft TechNet site has a great site that enables you to build your own cmdlets using a web drag and drop interface.
There is support for :
Let’s try Office 365 :
You notice the drag and drop interface. First select the verb, for example Get. Click get and the send arrow. Now choose a Noun, for example Msol User:
After selecting the Verb and Noun you notice the other extra options. Fill them in when needed. Now hit the Copy to Clipboard button to copy the PowerShell command to your Clipboard and start using PowerShell to manage your Office 365.
You can find the site here.