Sure, Wbemtest.exe is pretty neat, and it gets points for being built-in. http://blogs.technet.com/b/chad/archive/2012/03/08/tip-45-wbemtest-the-underappreciated-tool.aspx
But when it comes to building WMI queries for use in scripting languages, Microsoft’s WMI Code Creator is even slicker. http://technet.microsoft.com/en-us/magazine/2006.01.utilityspotlight.aspx
The WMI Code Creator tool allows you to generate VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class, or receiving event notifications using WMI.
Sadly, it’s no longer easy to find the WMI Code Creator utility on microsoft.com. Thankfully, it’s still available on Download.com: http://download.cnet.com/WMI-Code-Creator/3000-2229_4-10731137.html