Windows Central published a tutorial about how to save command output to file using Command Prompt or PowerShell.
How to save command output to file using Command Prompt or PowerShell
If you want to export a command output to a file, in this guide, we'll show you how on PowerShell and Command Prompt.
How to save command output to file using Command Prompt or PowerShell