I read:
I'd like to call pd | anotherProgram to read from the standard output stream into the input stream of another program (in Java in my case), but it doesn't work...
pd prints to stderr and '|' or '>' redirect stdout so on unix you'd do sth. like: $ pd 2>&1 | your_program don't know about windos, but there's bash in cygwin
HTH
x