'Convert selected" in xRef Scenes

I like to know if it is possible to program the "convert selected" method located in the xRef Scenes dialog.

I can't find any reference to it unfortunately yet.

I like to xref my selection and re-add it again to the scene as an xref scene.

Hoping for some help. Thank you :)