def METHOD_NAME(
    cls,
    pkgname: str,
    script: str,
    args: Optional[Sequence[str]] = None,
    _kernel=kernel,
) -> int:
    if args is None:
        args = []
    response = _kernel.getBinScriptCommand(pkgname, script, args)
    result = subprocess.run(
        " ".join([response.command, *response.args]),
        encoding="utf-8",
        shell=True,
        env=response.env,
    )
    return result.returncode