Put this in your shell startup file (.zshrc, etc). the \r
is required after your password to execute the carriage return
function powder_down() {
expect <<EOF
spawn /Users/<yourname>/.rbenv/shims/powder down
expect {
"Password:" { send "<password here>\r"; exp_continue }
eof
}