Start-ADTMsiProcess Uninstall Error

I'm attempting what should be a simple uninstall of a previous MSI installed application, but getting the following error:

Cannot process argument transformation on parameter 'InstalledApplication'. Cannot convert the "" value of type "System.String" to type "PSADT.Types.InstalledApplication".

Where is the name of an installed application in Programs and Features.

In previous versions of PSADT, we were able to use 'Remove-MSIApplications' and provide a partial name, so as to catch any previous versions of the app where the name may be slightly different, and this worked flawlessly.

With PSADT v4, 'Remove-MSIApplications' was replaced by 'Start-ADTMsiProcess -Uninstall', but it does not recognize the name when using the '-InstalledApplication' parameter, even if the name is entered exactly as it is in Programs and Features. I know there is an option to uninstall by product code, but again, I want to allow for installation of several possible installed versions with different product codes.

I'm not sure if I'm doing something wrong or if I simply don't understand the use of the '-InstalledApplication' parameter.

Any assistance is appreciated.

You'll probably want to be using Uninstall-ADTApplication as that's what Remove-MSIApplications morphed into.

I think you may have a misunderstanding of the various PSADT functions
I suggest you have a read through the Reference (Link at the top of this forum)

You probably want to use both

(To determine what is installed)
and then

(Pipe the result from the first as an input to the second)

There are plenty of examples on the two items linked above that should get you started

Thank you, that's what I needed. I didn't realize that command existed since it's all the way at the bottom of the command list. I just used the following and it worked perfectly: Uninstall-ADTApplication -FilterScript {$_.DisplayName -match 'APPNAME'} . Thanks again!