Thks for the quick reply, MMS id Microsoft Management system, kinda like TechED, there was a presentation made by Greg Ramsay and Donnie Taylor from Dell and all they say is that they've used PSCX - Powershell community extension for Configmgr to do what
They can get a collection'S ID just by doing this PS command Get-CMCollection ServerName
of get an advertisementID with this Get-CMAdvertisement ServerName
We want to delete old advertisement and also do so maintenance task with powershell, and do other kinds of cleanup automatically without having to mess with our database.
Maybe there's something in you extension that can do this?