Just for concern separation, but I'm open to suggestion.

I hesitated to merge this with `spawn_command` as they're both related to process running in a shell.