Did you try TJvAppInstances already? It is designed for limiting app instances, and it allows to set the maximum number of simultaneous instances using the property
MaxInstances. I am not soure however if it is also suited for a TS.
No, I haven't tested it. Will review. But on initial aim, this won't help.