Word! That took me so long to figure out when first starting Gamestudio. Haha.

So yeah. In WED, File>Map Properties, then assign it your script. Then, when you press the Run button in WED it runs this script instead of the raw level. Just probably make sure your script has some kind of level_load in it and you're good to go.