Currently on windows server, some process is running and it keeps on consuming memory. I want to kill the process if it exceeds specific limit e.g. process should be killed if it exceeds 6 GB memory usage. I'm looking for batch script which could be added to scheduled task. Any help on this? Thanks a lot in advance.