I have been working on a system agnostic (Win 7 and above, 32 or 64-bit) script which will capture the file name and path of a set of frequently used applications. The location of these applications can vary from %localappdata% (for items like OneDrive) to %programfiles% and %programfiles(x86)% for items like chrome.exe or winword.exe. I have been doing some tests with for /r, dir, robocopy, where and wmic. I have also tested with writing the data to a temporary file and then just using findstr to type the results to the console and/or a file. I'm sure there are benefits and drawbacks to different methodologies as well as the powershell scripts to Get-ItemProperty of the two Uninstall locations.
I know it can be difficult to provide suggestions without any code or the set of applications in question, but is there one methodology you might recommend over the others?
Thank you in advance and I apologize if this question is too vague.

Edit: I forgot to include the where command and forfiles.