Copy the the batch file to the folder where xampp is installed e.g. C:/xampp
And run the batch file as administrator.
Enter your project name (Project folder should be inside the C:/xampp/htdocs)
Enter your desired virtual localhost name
And you are ready to go...