The class allows starting a process with PowerShell. No specific version of PowerShell is required for this. The main benefit of using the class is that a new process will be run in a separate console window.
The constructor is PwshSystemProcess(String executableFile, ArrayList<String> args, int startDelaySeconds)
And then:
try {
pwsp.start();
} catch (SystemProcessException spe) {
// if got here then it can only be a problem with powershell
System.out.println("check powershell: " + spe.getMessage());
return;
}