I have added a new example PowerShell script to the Example Code area of the website which produces a device report for the machine on which it is executed.
The resultant report includes information such as installed drives, printers, RAM and software. The code also allows you to optionally export the device report as an .xml file.
See the following link for further details:
https://www.mikewilcock.com/example-code/powershell-scripts/powershell-device-report/