The Get-InstalledApplication function would throw errors when the -ProductCode parameter was used. I used parameter sets to separate the -Name and -Exact parameters from the -ProductCode parameter. I also added logging to distinguish which parameter combinations were being used.
I added a -ProductCode parameter to the Remove-MSIApplications function with the same parameter set logic. Passing the Product Code to Remove-MSIApplications will be more robust when searching for a specific application with the Get-InstalledApplication function.
I added a -ProductCode parameter to the Remove-MSIApplications function with the same parameter set logic. Passing the Product Code to Remove-MSIApplications will be more robust when searching for a specific application with the Get-InstalledApplication function.