How would I do something similar to a command line command (CMD) node runthis.js from another javascript file? I also need to run multiple .js files at the same time where they will have a loop that will wait for a certain condition to be met.
I need to check if a condition is met every second and then when a condition is met a function will be executed. The condition is the current time against a time specified by the user.