added functionality to enter password as command line parameter