How to write a cron job to automate this <process>. I am also using an api request to start this process

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
  <error id="startingerror" name="Error One" errorCode="startingerror"/>
  <process id="reportProcess" name="reportProcess" isExecutable="true">
    <documentation>Demo sample</documentation>
    <startEvent id="startEventScheduler" isInterrupting="false">
    </startEvent>
 <sequenceFlow id="sid-5A" sourceRef="startEventScheduler" targetRef="firstProcess"></sequenceFlow>
    <scriptTask id="firstProcess" name="firstProcess" scriptFormat="javascript" flowable:autoStoreVariables="false">
      <script><![CDATA[
	    java.lang.System.out.println("this firstProcess");
		]]></script>
    </scriptTask>
	<sequenceFlow id="sid-F4" sourceRef="firstProcess" targetRef="secondProcess"></sequenceFlow>
	<serviceTask id="secondProcess" name="secondProcess" flowable:async="true" flowable:type="http">
      <extensionElements>
    </serviceTask>
    
    
  <sequenceFlow id="sid-42" sourceRef="secondProcess" targetRef="thirdProcess"></sequenceFlow>
    
    <scriptTask id="thirdProcess" name="thirdProcess" scriptFormat="javascript" flowable:autoStoreVariables="false">
      <script><![CDATA[
      java.lang.System.out.println("In the thirdProcess");
				]]>
	  </script>
    </scriptTask>
	<sequenceFlow id="sid-F4" sourceRef="thirdProcess" targetRef="endTask"></sequenceFlow>
	<scriptTask  id="endTask" name="This task is end" scriptFormat="javascript" flowable:autoStoreVariables="false">
      <script><![CDATA[
		           java.lang.System.out.println("This is end");
		]]></script>
    </scriptTask>
    </process>  
</definitions>