I'm writing an application and I'm trying to catpure all the data from a specific command window. How would I go about getting this done?