The errors come because the cmdlet calls DISM internally to get info, and there are permissions errors if you aren't running elevated (and, oddly enough, you'll still see some even if you are). Ultimately, the cmdlet is calling "Dism /online /Get-CurrentEdition".