Is there a syntax for ending the script?
If not, is there a syntax for restart?
It is python, the language
To automatically restart the script, you could encase your entire script in a while True: loop. To end/exit the script, exit() works.
In what language?