There is a built in Command dispatcher and you will use it a lot in other plugins, to execute commands as rewards for example. It can execute as console, as player, it can just parse a placeholders or set user meta data value. It can also send formatted messages and can do many other things.
To better understand how these custom menus (and general Aurora menus in other plugins) work you should also check out how to configure menu items and requirements.