Thought I'd share this little sample. I needed to generate the text files that the aforementioned VBS takes. The little PowerShell piece below parses that XML and writes out each unique counter.
$data = [xml](Get-Content "Exchange2007-HUB.xml")
$hash = New-Object System.Collections.Hashtable
foreach ($entry in $data.PAL.Analysis)
$entry.AnalyzeCounter | Out-File "PerfmonLogScripts\Exchange2007-Hub.txt" -Append
Active Directory MVP