I don’t exactly answer your question but, I would say try this extension. 5D+ Auto Tag - Manage and import/export tags with textures.
Read the user manual and watch the YT tutorial. I think it’s the most powerful tag manipulation extension
If you want (like in Autocad) to repeat the last command, by typing the Spacebar, I recommend this extension
Curic Recall Command