Here is a good article I came across on MSDN / IIS7. It was written in July 2006.
Extending IIS7 Runtime Infrastructure and Management Components
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.