Windows Central published a guide about how to save a command output to file on Windows 11.
How to save a command output to file on Windows 11
This guide will show you the steps to quickly export a command output to a text file using Command Prompt or PowerShell on Windows 11.

How to save a command output to file on Windows 11