The pause button would do it, but I'd say it's probably going too quickly to action it by the sounds of things, and also I know how quickly these command prompt boxes flash up - they sometimes happen after the next restart after Windows has installed updates.

If you are still concerned, rather than trying to look in the workspace of the command prompt window, see if you can focus on the title bar - that will show the command that is being executed. I also go with what CountMike has said about checking Event Viewer.