AppleScript executes itself again after a reboot it initiated. How to avoid that?
Have your AppleScript write an empty file to a predefined location and test for its existance when the script starts. If the file is already there, delete it and quit the script; otherwise proceed as normal and reboot.