save data from cmd code example
Example 1: how to save command output in text file
YOUR-COMMAND > c:\PATH\TO\FOLDER\OUTPUT.txt
Example 2: powershell output text file
Out-File fileName
YOUR-COMMAND > c:\PATH\TO\FOLDER\OUTPUT.txt
Out-File fileName