Uninstall sortware:

Get a list of the applications that are installed

$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq ‘AuthPoint Agent for Windows’}

Uninstall the application by calling the Uninstall command

$MyApp.Uninstall()

 

https://redmondmag.com/articles/2019/08/27/powershell-to-uninstall-an-application.aspx