Script to restart program

On CB series, is there a script to restart the program from the beginning? Right now I use nested If/then statements with a variable to either run the next section or skip it. It’s a little cumbersome am just curious if there’s a way to restart through a script or something.