public static function execInBackground(string $cmd): void
    {
        if (self::isWindows()) {
            \pclose(\popen('start /B ' . $cmd, 'r'));
        } else {
            \exec($cmd . ' > /dev/null &');
        }
    }