Hey! This is an awesome script.
One thing I noticed is there is no version stored in the registry for Microsoft Apps, however, the version is part of the name.
I did this to get it:
$DisplayVersion = ($DisplayName -split '_')[1]
I don't know if you or anyone else would find that helpful, but thought I would pass it along.