Need to Remove Microsoft Teams (personal) only

That could be because an current user session is necessary to delete it; try changing the following in the script and see what happens.

override wait
hidden=true
runas=currentuser
wait powershell.exe -ExecutionPolicy Bypass “__Download\MSTeamApp Removal.ps1”

Also found my older post: