argument('domain'); $domainFlags = ''; foreach($domains as $domain) { $domainFlags .= '-d '.$domain.' '; } exec('certbot --nginx '.$domainFlags, $output); $this->line(implode("\n", $output)); } }