java powershell scripting
PowerShell: Download and Install Java 8 JRE
This older PowerShell script silently downloads and installs Java 8 JRE, with options such as auto-update and removal of older versions. It’s advisable to use Adoptium Eclipse Temurin as an open-source alternative.