Generate header for scripts