Yeah, I've been following that thread with full attention precisely because I am in the planning stages of my component. I think it can be done with just one thread but that's just a "feeling" yet.
Anyway, for the first use it is being designed we'll not be needing reading/writing from the process pipes so we can go ahead with a minimalist design. Heck, we could probably even just call
RunCommand() in the thread and ignore outputstring though
we are (or rather
I am) going to use a full TProcess so that we can terminate or kill it at will if the need arise, etc. I.e. because I like having full control (or as much as possible) of external things, in case they go haywire.
And, of course, because if you set out to make a thing like this you may as well do it
right Though I would much prefer spending the weekend otherwise, TBH. Thence this thread