ConvertTo-Json @{ ramFreeMiB = (Get-WmiObject Win32_OperatingSystem).FreePhysicalMemory/1024 ramTotalMiB = (Get-WmiObject Win32_ComputerSystem).TotalPhysicalMemory/1024/1024 }