spawnSync method
This method is generally identical to spawn with the exception that it will not return until the child process has fully closed.
Implementation
external dynamic spawnSync(String command,
[List<String> args, ExecOptions options]);