diff --git a/Civi/API/ExternalBatch.php b/Civi/API/ExternalBatch.php index f9ea3ae69cf2..5a883950763a 100644 --- a/Civi/API/ExternalBatch.php +++ b/Civi/API/ExternalBatch.php @@ -217,7 +217,7 @@ public function createProcess($apiCall) { $env = array_merge($this->env, [ 'CIVICRM_SETTINGS' => $this->settingsPath, ]); - return new Process($command, $this->root, $env); + return Process::fromShellCommandline($command, $this->root, $env); } /**