I'm not sure if this is the best method but I use the:
pgsql -d dbase -U ppk -f e:\\Test.imp < passwd.txt
Where passwd.txt holds the password for the user specified.
Hope this helps you out.
Pascal Van PuymbroeckZENON productions bvba