In Google Apps Script, you can enhance the user interface for editors of Google Docs, Sheets, Slides, or Forms by adding custom menus that appear when the file is opened. These menus let users trigger specific functions directly from the UI, streamlining repetitive tasks.
You can add a simple custom menu when your script is bound to a specific file, or create menus intended for add-ons, which are distributed and used across multiple documents or accounts.
Custom menus appear as a new top-level menu option, after the Help menu, giving users quick access to your script’s features.
In contrast, menus created for add-ons are grouped under the Extensions menu, maintaining consistency with other installed add-ons.
References: