To restart a script previously failed, you just have to rerun it.
It will restart from the last failed step.
To force the restart from the first stop, you can use --fromscratch parameter from command line, or restart from a specific step using --fromstep parameter