added api to run scripts