WinGet does not support Windows Server 2019 either (might work on Windows Server 2022 if its dependencies are manually installed). Make sure your account is a member of the Administrators group as the script requires elevated privileges. Being logged into a Microsoft account is also recommended, ...