Find RAM Memory Usage

Does anyone know how to gather the amount of RAM being used by your computer?  Whether it is total or just by SolidWorks I don't care.  I know you can use Environ\$ to get certain information from the computer, but RAM usage has eluded me.  I wasn't sure if you could interface with the command prompt window with SolidWorks API?  I know using "wmic OS get FreePhyscialMemory"  and/or "wmic OS get FreeVirtualMemory" in the command prompt window return useful values. I'm trying to run some baseline tests using a macro, but feel like knowing the amount of RAM being used would be a big factor.

SolidworksApi macros