Used write_exec_script