One script, one job
A script that does one thing and can be run again is worth writing the moment you do it twice. The file is the record of what you did, which is also what makes it reviewable next month.
Print what it will do
Echo each command before running it, or run with a flag that only prints. A script that says what it is about to do can be reviewed before it changes anything, which is the cheapest safety there is.