Remove a folder after uninstall process completes

Hello,

I was wondering if anyone could give me some help Removing the Programsfiles folder left behind after uninstalling an app. The action needs to take places after the uninstall.exe ends but I’m having no luck with the wait-process command…

What is your command to uninstall the executable? Have you tried using “-Wait” at the end of the command?

I ended up correcting the problem using the wait-process command…