WMIC is the command-line interface for Windows Management Instrumentation (WMI). It allows administrators to manage almost every aspect of a Windows computer—from checking CPU specs to uninstalling software—directly from the command prompt.
wmic MyClass get * // retrieve all data from MyClass
wmic MyClass put MyProperty1="new value" // update MyProperty1 in MyClass
wmic MyClass create MyProperty1="value1",MyProperty2=123 // create a new instance of MyClass
wmic MyClass delete // delete an instance of MyClass
wmic memorychip get capacity, speedGet-CimInstance Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum | Select-Object Sum
(Note: This shows total bytes. Divide by 1GB to get GB).