This file will replace the default file.

This file will replace the default Codigo.gs file after opening the command editor in Google spreadsheet (Herramientas > Editor de secuencia de comandos). Back to your spreadsheet file, update, and the new function will appear in the menu bar. Of course, this script is highly especifically for a project, but maybe will help you to create another ones.