[Console] added a Process helper

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | pending

This PR replaces #10609.
I've fixed minor errors, added tests and allowed to pass an array of arguments to escape as a command