core/Environment.class.php
public function onShell(): bool {
    $check = true;
    if (PHP_SAPI != Environment::SERVER_CLI) {
      $check = false;
    }
    return $check;
  }
public function onShell(): bool {
    $check = true;
    if (PHP_SAPI != Environment::SERVER_CLI) {
      $check = false;
    }
    return $check;
  }
- Check script execute on shell
@return bool Case yes return true, or false case other