script running the schedule example