Here's an example I was playing with
txt=runprogram(executable("python"),options({"C:\Users\User\Desktop\tweepy\twpy2.py"}),readfunction("text"));
Tweepy is a python package for twitter. This example expects the python program to start, produce output, and terminate, before the JSL continues. There are other ways to use RunProgram.
Craige