function execCommand(cmd, args) {
		const key = [cmd, ...args].join(" ");

		if (cache.has(key)) {
			return cache.get(key);
		}

		const process = spawn.sync(cmd, args, { encoding: "utf8" });

		if (process.error) {
			throw process.error;
		}

		const result = process.stdout.trim();

		cache.set(key, result);
		return result;
	}
Synchronously executes a shell command and formats the result.
@param {string} cmd The command to execute.
@param {Array} args The arguments to be executed with the command.
@throws {Error} As may be collected by `cross-spawn.sync`.
@returns {string} The version returned by the command.