generate a battery report windows 10 code example Example: wundows battery report powercfg /batteryreport /output "C:\battery_report.html"