You can write a Java program and use Scanner to take input from user:
Scanner in = new Scanner(System.in);
You can invoke this program from a batch file using following command:
@ECHO OFF
%JAVA_HOME%\bin\java MyClass
Have given you pointers and leave rest to you to figure out.
Cheers !!