I found this code didn't work for me, I adapated and used the following (I'm not a PowerShell expert so be warned)

Get-AppxPackage | where-object {$_.packagefullname -like...