SwitchJavaVersion script for windows(powershell 5.1)
Set the value of JAVA_HOME to any value in the environment variables, and set the value of JAVA_HOME_11 to the folder address of JDK11, the value of JAVA_HOME_17 to the folder address of JDK17, and the value of JAVA_HOME_8 to the folder address of JDK8. just like it: !command