simplify write_file(meta="run script")