Fork instead of spawn.
Considering a logfile for each command started. Using spawn instead of fork as it uses node shell for fork.