PowerShell script that creates another script by parsing your winget list
output and creating a new script file with all the packages available to be installed with winget and executable as it is.`
Note
If this is your first time using winget
you, for the script to work, need to accept its terms of service.
You can do so by executing any winget
command before executing this PowerShell script.
# Get the list of installed packages via winget
$installedPackagesOutput = winget list