I have searched for almost an hour and I still cannot find examples and or the code that I am looking for concerning my question.
I am wanting to capture/read/send (however you want to say it) the console output to a file.
Here is a picture of what I want to send to a file after the script runs. (what is in the console output/window after the script runs)