Run occlusion culling baking from script. Possible ?

Is it possible to start occlusion culling baking from script ( in editor).
I would like to automate some processes and baking occlusion culling is one of them.

I found this but I dont know how to execute bake via script. (run in editor)

https://docs.unity3d.com/ScriptReference/GameObjectUtility.SetStaticEditorFlags.html