This script has been tested on Windows 10 AND Windows 11 only. However, it is expected to work in earlier versions of Windows too 👌. This script uses powercfg /batteryreport to generate a very detailed report on the working, charging and discharging of the battery of your device.