To show what is installed...
winget list
Windows 10+ and Windows Server 2022+or...
Get-WmiObject -Class Win32_Product | Select-Object -Property Name
The following Powershell alternatives may yield a more complete list... but these cmdlets may not be installed on your system...
Get-Package -Provider Programs -IncludeWindowsInstaller -Name "*"
Get-AppxPackage -AllUsers | Select Name, PackageFullName
$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "MyApp"}
$MyApp.Uninstall()
Or (if this cmdlet is installed)...
Uninstall-Package -Name "MyApp"