When a user starts the script - set a field somewhere - not a global. When the script ends - reset the field.
At the beginning of the script test for the contents of the field.
Wonderful and so simple.
I appreciate your help!
If the script is running on a single record the status field can be in the same table.
If the script is running over a batch of records you should create a utility table with a single record in it and test there.