Have you ever wanted to know which scripts are being using in a Management Pack? I did 😉
You would normally use the MPViewer from Boris Yanushpolsky to have a look into the MP. But the MPViewer does not show you a list of all the scripts being used in the MP.
But this would take quite some time. An easier way is to use PowerShell with an Xpath query. You first need to convert the MP to XML.
$scripts = $xml.SelectNodes("descendant::ScriptName")
$scripts | group "#text"|select name|sort name
I need to thank Marco Shaw for his help on the formatting of the result 😉