Batch baking all scenes?

Hi, Instead of pressing “Bake” and waiting 3 hours and coming back to press “Bake” again, and repeating 20 times, is there a “Bake All Scenes” function?

Thx

What if they are unrelated scenes where lights should not affect other scenes in the same positions?

Loop over all the scenes and call Unity - Scripting API: Lightmapping.Bake