Validate vbScript argument names
问题 I am calling a vbScript from PowerShell, with arguments that are defined in a text string, and I want to validate that the arguments being used are correct. Say my valid arguments are ARG1 , ARG2 & ARG3 , and someone has a string of "/ARGG1:one /ARG2:two" , I want to validate the named arguments against an array of valid arguments and catch that ARGG1 . Where I am failing is in getting the names of the named arguments. I can reference a particular named argument with WScript.Arguments.Named(