You know, this should probably be a document with some explanation of what's going on instead of a discussion -- looks like some cool work!
I can see that your script was spectacular. Got a couple of questions though.
May I know where did you run the script? Is this to be run on LANDesk core or this can be done even locally. I was running the script and I've end up on this error.
LDISCN32: The Inventory server AGENCY did not respond.
Hoping for your favorable response.
Not sure if this works. Try creating a New Windows Script Host packages since this is a vbs script. I will be trying it out myself too.