Public/Get-WinRamInfo.ps1

<#
.SYNOPSIS
    Help you do day to day Windows Management task.
.DESCRIPTION
    This module will have some of the most common Windows Management task as functions.
.EXAMPLE
Get-WinRamInfo
#>

function Get-WinRamInfo {
    $totalRam = (Get-CimInstance -ClassName 'Cim_PhysicalMemory' | Measure-Object -Property Capacity -Sum).Sum
    return $totalRam; 
}