It depends on whether this some.exe . For example, the ls (or dir ) ls does its job and stops. You cannot say “do it again” - you need a way to communicate with the process, and the process must have some interface (usually stdio) that you can use to remotely control it.
If your external process cannot do this, you need to create a new process for each request, or you must start the process in another place and save the results in the cache for some time, so several user requests get the same data without you need to start the process .
So, if you get 100 requests per user and a minute, and it’s all right for the data to be one minute, you can start the process once a minute and reuse the old results.
source share