If the script command's job restart action is set to restart, then the script will be re-executed. Otherwise, the script ...

If the script command's job restart action is set to restart, then the script will be re-executed.  Otherwise, the script command will be skipped when the job is restarted, in which case corrective action should be taken to mitigate the effects of the script command failure.