Scripts/Memory/MemoryTotal.ps1

$Win32_PhysicalMemory | Select-Object Capacity | foreach {
$MemTotalCount+=$_.capacity
}
$MemTotalCount