are you looking for the SDK literature specifically ArcGIS Pro SDK | ArcGIS for Desktop
or how to run the quivalent tool to add a layer in arcgis pro
specifically those dealing with layers?
I don't want to do the action myself, since the pull-down menu has many options, (and that would be a problem too!)
The thing is that in my UI I have a button with instructions for the user to press on 'Add Data' button, add whatever data s/he pleases then click back my button to continue.
My manager wants that button to automatically do like clicking that button (as I said the pull down menu would be an issue, but for now I have to do what I'm told...)