Adding functionality to run the script locally

Run  script on local machine