COMMAND_ARGS is used for script function definitions, it's not usable anywhere else. scriptObj is an object of "Script" class that is passed when a script command is called, so obviously you can't get a mod index from a script object when you don't have a script. Moreover, why would you use NVSE array vars when you aren't making a script function? You have the power of C++ to your advantage, no need for them.