#made by kukisama
$a=(get-wmiobject -class Win32_PhysicalMemory -namespace "root\cimv2").Capacity
$b=(get-wmiobject -class Win32_PerfFormattedData_PerfOS_Memory -namespace "root\cimv2").AvailableMBytes
$c=$a/1024/1024
$d=$c-$b
cls
echo 您当前总内存$c 可用内存$b 已用内存$d