I wrote this script to uninstall Internet Explorer 9.
I get an error when I try to import your script:
"Index was outside the bounds of the array" and it doesn't let me import.
Different Kaseya version maybe? It was exported from version 6.1
You could probably whip one up yourself. The main command is
with parameter of:
/c FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c "cmd /c start /w pkgmgr /up:@fname /norestart"
Run that twice and then put a reboot step.
I found the command on a Microsoft Forum.