The ConsoleIO is not responsible for such things (it is responsible for dealing with user input and output)

What you need is looking at places running a subprocess, for instance https://github.com/composer/composer/blob/master/src/Composer/Repository/Vcs/GitDriver.php#L90