Simply saying you “tried ForEach” isn’t really helpful; you’ll want to show your code so that we can help you spot the problem.
In your case, you won’t get any results from computers that don’t have the app installed. So if you compare the computer names you started with to the ones that give you results, the “missing” ones are the ones that don’t have the app.
You will have to experiment with that. It might need => instead, for example. This will also run a little faster if you use -Filter on Get-WmiObject instead of getting everything and then running Where-Object.