Can Any one tell where I did a mistake.
@bhanuprakashk This is not much related to the validation of your code, but whenever executing a script as if it was a command (after adding your $PWD to the PATH variable) you also need to make sure, that the script file has appropriate “executable” permissions set.