runSync abstract method
Run one or multiple plain text command(s).
Commands can be split by line.
Commands can be on multiple line if ending with ^ or \. (note that \
must be escaped too so you might have to enter \\).
Returns a list of executed command line results.
Compared to the async version, it is not possible to kill the spawn process nor to feed any input.
Implementation
List<ProcessResult> runSync(String script);