In Maya, when you click a button, you can see the corresponding MEL script. For example, when I click a cube, it calls polyCube -w 1 -h 1 …
It would be nice to do something similar in UE4. I figure I would try and simulate a button click to “Add Component” in the Details panel. Something simple, like adding a cube. SSCSEditor::AddNewComponent seems to do all the work, but I can’t find a way to call it from my actor component.