Hello @Martin_Bryant In addition to the many suggestions above, I suggest the following:
1.The program needs to be run multiple times and not sure how many times to run,
Convert your program to a stored process with prompts as needed. The stored process can be be run as and when needed and the parameter input.
In addition the stored process can be invoked as using http request (post or get as needed) / REST API.
2.The program has to be run at predetermined intervals Use a scheduler for example to run the job. The parameter value can be stored in a text file and the job reads it.
... View more