refactor(console) getSpawn
refactor(console) getExec