local helper = jarvis.context.command_path .. "\\_sysinfo.ps1" local cmd = string.format('powershell -NoProfile -ExecutionPolicy Bypass -File "%s" -Topic battery', helper) local res = jarvis.system.exec(cmd) local text = (res.stdout or ""):gsub("[\r\n]+$", "") if res.success and text ~= "" then jarvis.system.notify("Батарея", text) jarvis.log("info", text) jarvis.audio.play_ok() else jarvis.log("error", "battery info failed: " .. tostring(res.stderr)) jarvis.audio.play_error() end return { chain = false }