def METHOD_NAME(self, key: str, value: Any, preamble_lines: List[str]) -> str:
    # If a file parameter is used, fix it up to be relative to the computed
    # tools directory _at the time choco install_ runs.
    if key in ("file", "file64"):
        preamble_lines.append(
            f"${key} = Join-Path $toolsDir '{os.path.basename(value)}'"
        )
        return f"${key}"
    elif isinstance(value, str):
        return f"'{value}'"
    elif isinstance(value, List):
        return f"@({','.join([x.__str__() for x in value])})"
    elif isinstance(value, bool):
        return f"${value}"
    raise ValueError(f"Unhandled value type: {type(value)}")