Sorry for the poor title but it's hard to explain in a few words what I'm looking for hence Google can't show me what i'm looking for.
I'm under the impression that many Windows applications can be run with arguments via command line. My question if there is a log or a program that would show you the commands that have just been ran after you have interacted with a program via the Window's GUI.
So for instance if I:
opened Media Center -> Live TV
The log or program would give me the resulting console commands in order to run the GUI actions via
If I could see what actions were being taken behind the scenes of the GUI I could really automate many menial tasks.