There is a cross-platform CLI (based on Node.js), which runs on OS X and Linux as well as Windows - I don't specifically know if it has commands for opening ports though. There's information and links at https://azure.microsoft.com/en-us/documentation/articles/xpl... if you want to check it out.
Try their xplat cli [1], it's built on node/npm. I'm on Windows but still prefer this one over the PowerShell one.
Thanks for pointing those out!
[1] https://github.com/boto/boto3