Scripts for User-Defined Commands
Alternatively, you can attach a script to a special menu dedicated for that purpose; you execute the script by selecting that menu item. In that case, the script is called a user-defined operation. See Scripts for User-Defined Commands.