Scripts/Memory/MemorySlots.ps1

$Win32_PhysicalMemoryArray | foreach {$_.memorydevices}