# Self-elevate the script if required
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
    if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
        $CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
        Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine
        Exit
    }
}

# MISSING
# winget install --id= -e battle.net
# winget install --id= -e rockstar
# winget install --id= -e oculus


# BROWSER

# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Brave.Brave
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Google.Chrome
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id VivaldiTechnologies.Vivaldi

# TOOLS
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Microsoft.PowerShell
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id 7zip.7zip
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id AutoHotkey.AutoHotkey
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id CodeSector.TeraCopy
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id CPUID.CPU-Z
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id CPUID.HWMonitor
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id CrystalDewWorld.CrystalDiskMark
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id EFDSoftware.HDTunePro
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Duplicati.Duplicati
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Git.Git
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Logitech.GHUB
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id mgth.LittleBigMouse
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Microsoft.PowerToys
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Microsoft.WindowsTerminal
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Nvidia.GeForceExperience
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id OpenJS.NodeJS
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id OpenVPNTechnologies.OpenVPNConnect
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Oracle.JavaRuntimeEnvironment
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Parsec.Parsec
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Plex.PlexMediaServer
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id PuTTY.PuTTY
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id RamenSoftware.7+TaskbarTweaker
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id RamenSoftware.Windhawk
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id valinet.ExplorerPatcher
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Resilio.ResilioSync
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id sidneys.desktop-dimmer
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id SomePythonThings.WingetUIStore
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id TeamViewer.TeamViewer
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id TechPowerUp.GPU-Z
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Unigine.HeavenBenchmark
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id WinSCP.WinSCP
# winget install --query python3 --silent --accept-source-agreements --accept-package-agreements

# APPS
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Audacity.Audacity
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Adobe.Acrobat.Reader.64-bit
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id calibre.calibre
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Discord.Discord
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id DominikReichl.KeePass
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Facebook.Messenger
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Greenshot.Greenshot
winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Microsoft.VisualStudioCode
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id OBSProject.OBSStudio
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Philips.HueSync
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Plex.Plex
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id qBittorrent.qBittorrent
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id StylusLabs.Write
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id th-ch.YouTubeMusic
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Ytmdesktop.Ytmdesktop
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id VideoLAN.VLC
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id WhatsApp.WhatsApp
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Foundry376.Mailspring

# GAMES
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id ElectronicArts.EADesktop
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id EpicGames.EpicGamesLauncher
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id ItchIo.Itch
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Nvidia.GeForceNow
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Playnite.Playnite
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Ubisoft.Connect
# winget install --exact --silent --accept-source-agreements --accept-package-agreements --id Valve.Steam

pause