Office 365, and Exchange Server both expose powershell to the internet via HTTPS.
When this is done, only a subset of possible commandlets are downloaded for remote execution.
How can I publish a specific list of powershell commands (some which I produced) over HTTPS?