private function findExecutables(string $directory, string $command): \Generator {
    foreach (array_merge([''], $this->getExtensions()->getArrayCopy()) as $extension) {
      $resolvedPath = Path::makeAbsolute(Path::join($directory, $command).mb_strtolower($extension), getcwd() ?: '.');
      if ($this->isExecutable($resolvedPath)) yield str_replace('/', DIRECTORY_SEPARATOR, $resolvedPath);
    }
  }