Start a process from command and connect the input or output
to the returned stream. This wraps the POSIX popen() API. The type
string starts with r or w and may be followed
by b to create a binary stream. The default is to
create a text stream using the platform conventions and locale.