added function to run scripts defined from markdown