Why are you calling the function in the last line?
Maybe it is because the script runs faster than 1 minute and is called twice within 1 minute.
The action time field (text field) was set for 5 minutes.
When 3 minutes was reached on the stop watch field, the alert showed twice.
Can you please advise how to correct this issue??
I have taken out the return; and AlertAction; from the end of the document level script, but the alert is still showing twice.