Unzipped.txt should contain the entire directory listing. After all, that is what you redirected to the file called "unzipped.txt". You say you want everything you see on the screen, but the unzipped.txt file should already contain everything that would normally be on the screen if you typed in "dir", so i'm not sure what else you are trying to include in there.
The thing is that command 'unzip -tq' is used to test zipped archive. If FileName1.zip is good, I get screen that says: "No errors detected in compressed data of FileName1.zip." If FileName2.zip is corrupted screen provides " error: invalid compressed data ..." or
"File.xlsx bad CRC....
At least one error was detected in FileName2.zip"
dir > unzipped.txt file does not contain this text.
I can get it manually: select text on command prompt screen, right-click, open Notepad and paste.
But how to get it automatically?