Compiling and running scripts