This PR includes two things I found during testing in our corp environment:
We have multiuser machines, where sometimes many outdated versions of apps stick around, because previous users never log in again. In this case, the previous logic of just sorting all AppInstaller InstallLocations lexicographically descending does not lead to the desired result. Lexicographically, 1.4.3161.0 is higher than 1.21.2721.0. Version-wise, this is of course false.
I found that the winget.exe list in Test-WinGetApp function is not working as expected, without explicitly setting the 'scope' to 'machine'. This fixes #10
This PR includes two things I found during testing in our corp environment: