How to add script to system scheduler

Hello, I’m a newbie and only self-taught, can you give me an idea of how to add a script to the system scheduler?
Thank you for your help.

In the “On Event” window enter the name of the script respecting the syntax. Or type: /system script run scriptname

Or simply put the script inside the On Event “script” section of the scheduler???