Is it possible to make a ruby method into a event command?

Is it possible to run a method by using making into an event command?
Okay, I found the article in the documentions, if you have any helpful tutorials you can post them there.
nothing can change the editor, so you can't create new event commands.

but you can use the existing script command to simply call that function.
Double-post notice: @getCampedOnKennethI would usually merge the posts together but I'm unclear what the second post means, so I'll just keep them as two posts this time.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-make-a-ruby-method-into-a-event-command.130919/