Hello,
Thank you so much for posting here.
We mainly focus on the GPO issue. GPO can only uninstall what it installed. If it was manually installed, then it will have to be manually uninstalled prior to GPO deployment of the new one. So the manually installed app should be uninstalled first, whether manually or shutdown script.
So sorry that we are not professional with the powershell or cmd command. If we have more questions about powershell script, there is dedicated forum. We could turn to this for further assistance.
https://learn.microsoft.com/en-us/answers/topics/windows-server-powershell.html
Thank you so much for your understanding and support.
Best regards,
Hannah Xiong
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.