it can be done?. Running a script every n seconds.
No it can't. A human must start a script.
However, there's no reason why a script must exit. It could be modified to sleep and loop.
sleep and loop do the job.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.