Saw this on http://www.howtogeek.com:

In Powershell:

Code:
Get-WmiObject -Class Win32_Product | Select-Object -Property Name
To output the results to a file:

Code:
Get-WmiObject -Class Win32_Product | Select-Object -Property Name > C:\Software\PCapps.txt
To compare the software installed on one computer with another:

Code:
Compare-Object -ReferenceObject (Get-Content C:\Software\PCapps.txt) -DifferenceObject (Get-Content C:\Software\LAPTOPapps.txt)
I am a complete novice when it comes to Powershell but this looks like it might be useful occasionally.

I will be on the lookout for other similar Powershell statements.