Three tools spring to mind -
- calibre has a rich set of command line tools that can be combined via scripts ==>> User Manual: Command Line Interface;
- the JobSpy plugin has options to make some global preferences Library specific;
- the Action Chains plugin provides a way to combine multiple actions into a single action.
See
Index of plugins
One of more of these might get you some way towards what you want.
Plugins are almost invariably developed by the user who first identifies a specific need.
BR