Script only work after /restart

Hello Everyone !

I work on a script and I found a problem

The script only work if someone restart de ressource AND if there is player on server.

When a I use my script it work only after a restart. But when I die and respawn the script does’nt work again.(Expect after a restart)

Here is reason of that or I miss a function ?

For the begin of my problem it’s here : How to execute command through script?