Create SCCM Software Package Collections

This PowerShell script will create both the mandatory and self-service collections for a software package/application.   The script must be run from an x86 PowerShell environment on a system with the SCCM 2012 Console installed and Cumulative Update 1 or later applied.