Did you run what was posted?
echo password | telnet -l username IPaddressWhat were the results? Can you post the console output. If telnet cannot accept input from the pipe, it may be possible to redirect input from a file, but it will be necessary to see the sequence telnet requests the input.
Of course telnet may only take the password from the keyboard in which case you will be SOL.
Let us know.
If the telnet userid and password are the same ones you use for Windows, try using the -a switch:
telnet -a IPaddress