PowerShell and Configmgr 2007/2012:
If you are searching to script with SCCM 2012 post sp1 edition, you must probably already know that there are tons of cmdlets available. Prior to SP1, there were no ‘official’ cmdlets available in order to automate different tasks on ConfigMgr 2012. That is actually the main reason why I started to develop my own PowerShell cmdlets and regroup them in a SCCM2012-Commands module. If you are attempting to script something with SCCM 2012 after version SP1, you might be lucky, and have already everything right there. Simply load the console and then write the following command :
get-command -module configurationManager
You will have the list of all the cmdlets available. Simply filter on the name to find what you are looking for.