Setting up a new Windows PC means installing the same twenty apps again. If you use winget, you can skip most of that clicking. It can write a list of your installed apps to a file and read it back on the other machine.
winget export -o apps.json
That makes a JSON file with every installed app winget can match to a source. Add --include-versions if you want the exact versions; without it, import installs the latest. On the new PC:
winget import -i apps.json --accept-package-agreements --ignore-unavailable
--accept-package-agreements accepts the licence prompts in advance, so you don’t have to babysit it. --ignore-unavailable keeps going when an app from the list isn’t available.
Microsoft’s docs suggest editing the JSON before you import and removing what you don’t want. I’d do that: the export can pick up runtimes and helper packages you never installed on purpose, and a new PC is a good moment to drop old stuff.
Caveat: anything winget can’t match to a source gives a warning during export and simply isn’t in the file. Apps you installed by hand from a vendor’s website may be missing, so keep a short list of those yourself. And your settings and data don’t come along; this is the app list only.
Further reading: Microsoft Learn: winget export, Microsoft Learn: winget import