Your main method only calls executePSCommand
, which returns a string. You never do anything with the return value, so no output is likely to appear.
How about something like so,
String s = executePSCommand("Get-WmiObject Win32_Processor");
System.out.println(s);