public ProcessBuilder runInShell(String cmd, String[] args) {List<String> argv = new ArrayList<>(3 + args.length);argv.add("cmd.exe"); argv.add("/c"); argv.add(cmd);argv.addAll(Arrays.asList(args));ProcessBuilder proc = new ProcessBuilder();proc.command(argv);return proc;}

public override ProcessStartInfo RunInShell(string cmd, string[] args){IList<string> argv = new AList<string>(3 + args.Length);argv.AddItem("cmd.exe");argv.AddItem("/c");argv.AddItem(cmd);Sharpen.Collections.AddAll(argv, Arrays.AsList(args));ProcessStartInfo proc = new ProcessStartInfo();proc.SetCommand(argv);return proc;}
