Advanced Example Using PowerShell and the OpsMgr SDK: Creating and Updating Groups

Courtesy of Marco Shaw - https://www.systemcenterforum.org/news/advanced-example-using-powershell-and-the-opsmgr-sdk-creating-and-updating-groups/