Thank you for all the help! this group has been my teacher. I got my script working. The problem was, the folder name had space and hence it was not creating.