You need a line
level_load("yourlevel.wmb");
in your script.

Because all WED does when "starting" your level if you added a script is running the script.