Windows 8.1 and below
Open an elevated CMD prompt and run the following
Powercfg /energy /output C:\temp\EnergyReport.html
Windows 10 and up
Open an elevated CMD or PowerShell prompt and run the following
Powercfg /batteryreport /output C:\temp\Battery.html
powercfg /SYSTEMPOWERREPORT /Output C:\temp\sleepstudy-report.html