Is there a simple way that I can create my own compile script?
Go to Design | Settings and make sure the settings under compilation are set properly.
In Design Browser, right click on a source file to choose Design Compilation Order.
After making sure the order of the compilation is proper, click the button to generate a macro file/script.
You will end up with a script to compile your design.