The lastModifiedTime property needs some extra explanation. When updating metadata of an app, like its category, the lastModifiedTime is changed but no new version is created. With PowerShell, we have no access to versions so the output of the code must be seen as an indication of apps which have not been update for the given amount of days.