Not versed enough in C# to know where to begin, but
Software tab > "Add from scanned"
Discovered Apps show multiple times if there are App Revisions beyond the latest revision.
Example app has 8 Revisions that are not cleaned up, and Software Scan discovers 8 "apps"

After removing old Revisions, scan now only shows 1 application
