Get Scripts function