It’s possible that with some modifications the script you have may work just fine with some modifications. Any change you can post the code you need looked at? (please consider if there is anything proprietary to your business prior to posting)
If not, I can provide some guidance. Basically, you can pass a argument to vbscript using the command line if you use the WScript.Arguments object in your script to grab the item you pass to the script.
You could easily add another parameter to make it do any numer of things.
Post more of how you’d desire it to work and possibly we can help.