runScript function

Executes scripts from GB book