How to repeat the same series of Search & Replace steps over and over again?

Use a script action, e.g. like Creating an action to replace ☐ with [ ]? - #2 by sylumer