@eminero You can add the check box on SO record, check the box before you start the schedule script.....lock the record based on the check box value(Use of workflow:- To prevent the user to edit the record).
In last step of schedule script uncheck the check box and save the record.