Updated ProcessAdapter to return Popen type object