Create main script file