This is an example of the process you should go through in creating your own custom inventory. This whitepaper provides a vbscript example and the process to create dataclasses to use for your collected information.