function getBinVersion(bin) {
		const binArgs = ["--version"];

		try {
			return normalizeVersionStr(execCommand(bin, binArgs));
		} catch (e) {
			log.error(
				`Error finding ${bin} version running the command \`${bin} ${binArgs.join(" ")}\``,
			);
			throw e;
		}
	}
Gets bin version.
@param {string} bin The bin to check.
@throws {Error} As may be collected by `cross-spawn.sync`.
@returns {string} The normalized version returned by the command.