Automate Bake To ControlRig function (BP/Python/C++)

I’m looking for a way to access Bake To ControlRig function for automation purposes.

BakeToControlRig() function seems to reside in ControlRigEditorModule.h in ControlRig plugin, but it’s in a Private folder. And it’s only available as an extension to the ContrxtMenu UI of the sequencer.

I’ve managed to get to the point where LevelSequence is all setup, and all is needed is to manually right click on SkeletalMesh and press “Bake to Control Rig” entry. Is it possible to automate this bit somehow?