Here is a good article I came across on MSDN / IIS7. It was written in July 2006.
Extending IIS7 Runtime Infrastructure and Management Components
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dniis/html/iis7run.asp
Summary: This article demonstrates how you can leverage the modular architecture of Internet Information Server 7.0 (IIS7) to extend the functionality of the core Web server. In addition, it takes advantage of new management service and tool extensibility features to create a compelling sample solution that increases the Web server feature set.
IIS7 WMI beta reference link. Many of these links show returning information using VBScripts.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/IIS_70_AdminSDK/html/7b785db0-a6d8-5278-b524-bdcfc0463613.asp