Anyone have a script to remove all instances of Java 8 and install different version

Anyone have a script to remove all instances of Java 8 and install different version

Was using PDQ for a large project. As they had the built in scripts that aided in the deployment of Java.
Tried copying everything over to DC for the remainder of the 100 or so machines but it's not working. 
Need to uninstall whatever version of Java 8 is on target machines and install a specific version of java.

Anyone have such a thing.

                New to ADSelfService Plus?