If, you wanted to take a quick peak, using powershell, on some performance metric and show it in write-progress, here’s how you would do it.
“But why?” I hear you saying. “Can’t I just do that in perfmon or any other tool made for this?”
Well, sure, but where’s the fun in that. =)
If you want to see them both, should be simple enough to setup multi-threading and get some feedback. Here’s an example of someone doing something similar.