Here is the command how to show the available system memory on Windows with PowerShell command :
(systeminfo | Select-String 'Total Physical Memory:').ToString().Split(':')[1].Trim()
Example :
PS C:\Users\user> (systeminfo | Select-String 'Total Physical Memory:').ToString().Split(':')[1].Trim() 32,767 MB