Use the Symfony Process component.