System Scheduler Script

Hi everyone,

I’m a newbie here and only self-taught so I really am not so well knowledgeable on scripting. I would like to add a script to my system scheduler, can anyone tell me how to do it?
Actually, I have already an existing script on my scheduler but I think there is something wrong with it because the hotspot users won’t automatically disable and deleted even already expired.
I’ll really be grateful to receive your advice. Thank you so much.

Make sure your script is correct by running it under /system script
Make sure your interval in scheduler is as you want
Also in order to run scripts with scheduler enter the name of the script in the “On Event” of scheduler this way when the interval of the interval reached it will run that script.