You forgot a switch…
Get-AppxPackage Microsoft3DViewer -AllUsers | Remove-AppxPackage -AllUsers
Local System will never have this installed so it will never have it listed.