SET with the prompt option works like this:
C:> SET /P myvar="Enter password: "
Enter password: abcdef
C:> SET myvar
To get help for SET, use HELP SET.
(Or "HELP SET > set.txt" and read it in notepad.)
HELP by itself lists all commands.
Google "windows batch files" for tutorials.