Script to kill all opened app except UIPath

Is there some scripts we can just simply click by the bot to close the opened apps excep uipath.
I can’t use kill process since I wanted to kill the apps on a different virtual machine window. If I use kill process it will kill the apps on my window where the UIPath is running and not on the other window VM.

I wanted to kill all opened apps in a seperate window virtual machine. do you have some idea guys ? thanks.

@AhmedKutraphali - Please have a look here…

@prasath17 but how would I run that on the seperate window VM ? because what the apps that I am trying to kill is on a seperate window

Can you give a try on below approach:

  1. Open the command prompt as the current user or as Administrator on VM.
  2. Type tasklist to see the list of running processes and their PIDs. …
  3. To kill a process by its PID, type the command : taskkill /F /PID pid_number.
  4. To kill a process by its name, type the command taskkill /IM " process name" /F.

Hope it works.