You need a main script file.

File->Map properties->New script