This code is rather useful if you need to install Java JDK or Java JRE without a product like SCCM. This script will download the installer file, create the silent install text file then silently install Java JDK or Java JRE and place the executable path into the System Environment…