See File naming rules for CotEditor scripts for more details.
You can create subfolders in the ScriptMenu folder. They will appear as submenus.
The changes you made inside the ScriptMenu folder will be automatically reflected when CotEditor launches. Thus, you need to perform “Update Script Menu” only when you made modifications during CotEditor is running.
See also