Currently we are creating a repair script which cleans up Dns and installs certain pieces of software but encountered a problem.

We need our script to run sims upgrade then close the dialog windows for sims.net then carry on with our script.

we currently have it so it runs the script but we cant manage to close the dialog we have tried

taskkill /IM pulsar.exe /f

But we have to manually close the dialog box and help would be much appreciated