Firstly I should point out that having passwords in plain text is just silly - you may as well just put a post-it on the side of the machine.
But to answer your question ...
If you use scripting you can read text files ... have a look at
this M$ article[
^] and/or this
list of links[
^]
It would be far more secure to write a console application to do this for you, and properly encrypt the passwords (there are articles here on code project to help with that)