Make the script 'scriptflag' where you want it. You can also use another name.

Also make 'script' and 'nothing', but delete them from the map after creating them.
Now there should be three scripts:

'scriptflag' looks like this:

'script' looks like this:

And 'nothing' is just empty:

If you do this, the script should run only once!