first approach to run scripts