This script will query a remote computer’s list of installed applications and provide the output in a file and directory of your choice.

Example: gwmi win32_product -ComputerName “Computer1” | out-file -filepath “<File Path>”