Generating the remediation bash script