Write scripts on dry run