undefined' ? ksu : null);
            if (!ksuApi) {
                return Promise.reject(new Error("KernelSU API is not available"));
            }
            if (typeof options === "undefined") {
                options = {};
            }
            return new Promise((resolve, reject) => {
                const callbackFuncName = getUniqueCallbackName("exec");
                window[callbackFuncName] = (errno, stdout, stderr) => {
                    delete window[callbackFuncName];
                 