## Amazon supported versions: 8 and 11
$Version = "11"

## Get the correct URL
If ( Is64bit ) { $URL = "https://corretto.aws/downloads/latest/amazon-corretto-${Version}-x64-windows-jdk.msi" }
Else           { $URL = "https://corretto.aws/downloads/latest/amazon-corretto-${Version}-x86-windows-jdk.msi" }

## Install Amazon Corretto
Install-Program -Path "msiexec.exe" -Arguments "/i ${URL} /qn /norestart"
