Jana Sattainathan has a cmdlet to retrieve instance information with Powershell:
There is not much to say except that this supports pipeline input. Take a close look. PowerShell folks don’t read text, they just focus on the code…So, here it is.
Click through for this code.