Plugin command through script call

Hello people!
I know there is this way to use plugin commands with script call:

Code:
var myInterpreter = new Game_Interpreter()
myInterpreter.pluginCommand('Command', [Argument]);

Ex:
var myInterpreter = new Game_Interpreter()
myInterpreter.pluginCommand('SmartJump', [4]);

In this example above, I managed to make it work because this command have only one argument. But in case the plugin has multiple arguments like this:

"OuterSelfSwitch on 3 A"

I know the "OuterSelfSwitch" is the command, and the others are arguments.
How can i put this arguments to work?

I try several things, separate with comma, espace etc... but don't work.
Taking a look at how the interpreter handles the plugin command Event Command:

Code:
// Plugin Command
Game_Interpreter.prototype.command356 = function() {
    var args = this._params[0].split(" ");
    var command = args.shift();
    this.pluginCommand(command, args);
    return true;
};

We can see that it passes a variable called 'command' and a variable called 'args'. We can deduce the type of the 'args' variable is an Array because split creates an Array from a string.

So you'd pass those arguments as an array to the function:
Code:
var myInterpreter = new Game_Interpreter()
myInterpreter.pluginCommand('OuterSelfSwitch', ['on', '3', 'A']);

But there's probably a better way. What this would do is:
execute script --> execute plugin command --> execute the final function

What would be better is to look up the 'pluginCommand' in the plugin that you're interested in. It's going to call the final function based on the input. You can just skip to doing that right away without bothering with the in-between step.
@Aloe Guvner Thanks!!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/plugin-command-through-script-call.105804/