Replaced Cogent Script with original script written, the main script to run the automation