MZ Executing a function from a Script Call

This is basic JS by now but I'm really feeling like I'm having a major obvious oversight that I can't seem to know.
I am a beginner coder, simply reading codes and making skills using JS
In my case I've been toying with calling a function in script call
I have this function right there as an example:
Scene_Battle.prototype.command = function() { code };
and I've tried to execute that function in script calls using
SceneManager._scene.command();
the game doesn't recognize my particular command function at all, simply throwing an error saying that this function is undefined.
Should I double check what's inside the function code? am I simply not understanding how it all works?
Any help would be really appreciated.
The syntax is correct and this works for me when using it in a script call(from the battle event). Make sure you saved the file before running the battle test.
Remember to also save your project before testing, to apply any Plugin Manager changes. If you are doing this while testing, you will also need to reboot the game (e.g. by pressing F5) to load the updated file(s).
Well this complicates a lot of things suddenly if this code is supposed to be right.
I really can't get this function to appear even in the console.

Here's the steps I did:
I created a new project
I put the plugin in question that had the exact same function as mentionned above ie Scene_Battle.prototype.command = function() {};
I saved the game with only this plugin
I opened a Battle Test, opening console with it, typing SceneManager._scene.command();
returns as this not being an actual function, and auto fill that console has doesn't show anything.

I'm thinking this is because it's an MV plugin for MZ?
the plugin works well, just the game doesn't recognize the functions to call.
Note: command function is just as an example. I am making sure to use the exact same name of course.

EDIT: I figured it out. turns out plugin has an "if" argument for the entire plugin that doesn't load it unless the if returns true.

Original thread: https://forums.rpgmakerweb.com/threads/executing-a-function-from-a-script-call.141665/