code: public String call() throws InterruptedException {
          StringBuilder powerShellOutput = new StringBuilder();
  
          try {
              if (startReading()) {
                  readData(powerShellOutput);
              }
          } catch (IOException ioe) {
              Logger.getLogger(PowerShell.class.getName()).log(Level.SEVERE, "Unexpected error reading PowerShell output", ioe);
              return ioe.getMessage();
          }
  
          //Remove last CRLF from result
          return powerShellOutput.toString().replaceAll("\\s+$", "");
      }
docs: Calls the command and returns its output
  
  @return String output of call
  @throws InterruptedException error when reading data