How to create a plugin command?

I want to create and add custom scenes. For that I need to push my custom scene into the scene manager.
But the point at which i can push it into the manager seems to be via plugin command?

And can not find a thing on how to create and use plugin commands for MV.

EDIT: Nevermind. I figured it out.

The game interpreter simply calls the function pluginCommand(), which is by design meant to be aliased. So the only thing needed to actually run a plugin command is just the alias method that overrides Game_Interpreter.prototype.pluginCommand.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-plugin-command.167561/