The ability to "Copy Python Command" for a geoprocessing tool, from the tool dialog or the history is very handy when building a Python Notebook or script for automation. It would be great to be able to do that for when you select "Share As Web Layer" or "Overwrite Web Layer" as well.
Figuring out the correct Python to accomplish those two tasks is notoriously challenging. Being able to fill out those dialogs, and then copy the resulting chain of ArcGIS python methods (e.g., FeatureSharingDraft, StageService, Upload Service Definition, etc.), would be a great help!