Supports batch file in the directory

Add batch passing a directory on the command line argument