Render script

I was wondering if anyone has a script that helps with rendering and if they would be willing to share it.
I have one blend file that holds the setup for isometric rendering with two cameras and all the assets are linked into separate collections. To render everything I have to go throw all collections, deactivate the render visibility on all others and render the collection with both cameras. Some collections hold an animation that needs to be rendered instead of a still image.