#!/usr/bin/env php
<?php

declare(strict_types = 1);

$count = 0;
$filePath = '../../../source/modules/d3/ordermanager/public/d3_ordermanager_cron.php';
$currentDirectory = __DIR__ . '/';
while ($count < 5) {
    $count++;
    if (file_exists($currentDirectory . $filePath)) {
        $filePath = $currentDirectory . $filePath;
        break;
    }
    $filePath = '../' . $filePath;
}

require($filePath);