Script to automate the repetitive commands