How to retag using batch file

There is no way to use a text file to modify the contents of an action at runtime.

You could use the an action group with several actions. See the HowTos about the creation of an action group:

Alternatively, you could use an action that allows a format string with the scripting function $replace() that allows several pairs of search and replace strings.