How can execute batch api over cron jobs I am working on Drupal 8 and batch API. I created the batch api calling importingmatch and it should automatically importing every 1 hour.

My solution is use Drush for make it works without the browser, but I don't know how I can get the batch id. 

Here is my code about the Batch API:

// Set up the Batch API
    $batch = array(
        'operations' =&gt; $operations,
        'finished' =&gt; 'importingmatch_finishedBatch',
        'title' =&gt; t('Import match'),
        'init_message' =&gt; t('Starting import match.....'),
        'progress_message' =&gt; t('Completed @current step of @total.'),
        'error_message' =&gt; t('Import match deletion has encountered an error.'),
    );

    batch_set($batch);


Currently, this batch is runing perfect if I access from my PC. Url: www.mysite.com/importing_match
I am not sure how make it working from the server Centos with Drush, I need the batch ID for execute: Drush batch-process 

UPDATE:
- Interesting with the Command for Drush, I created custom Command from my module. Following from here: https://www.chapterthree.com/blog/how-to-create-custom-drush-commands. But it's still not working, it's showing:

The drush command '&lt;name&gt;' could not be found.


I changed from localhost to 127.0.0.1 from the settings.php but it's not helpful. Any idea?
You don't. Batch API is to do long-running processing with user-interaction. 

For cron, you either use queue API or you just process for N seconds/things in your hook_cron() implementation, and in both cases, cron will be calling you repeatedly until it is eventually done.

If you want to process as fast as possible then either use a different queue processing that doesn't run on cron or make a custom script/drush command that you execute separate from cron, so that you don't block other cron jobs.