That took care of the window problem. The only thing is that $PASS is being return as empty even though I am typing in a password...