Hi Mark, I must admit I don't understand the TCO code. (I did not get it to work, and I didn't find much when googling, so I tried to adapt it myself, but no luck. Sorry, probably my lack of programming).
In the mean time I found another solution with a TaskKill- command which finally works...