ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from Win32_Battery");
foreach (ManagementBaseObject envVar in searcher.Get()) {
Console.WriteLine(envVar["DesignVoltage"]);
Console.WriteLine(envVar["DesignCapacity"]); }