Gurpreet| Ensuring that sudo is invoked with -E option to pass environment variables to root user while running the script. Can pass BAHMNI_USER_NAME like that.