Creating and controlling external processes