You could build something based on the same action shared here.
Just repeat the first script line and modify it for any replacements you want to make,