set PROMPT_COMMAND for putty

Hi,
I"m trying put string below to set window title on putty into the script and cannot, whereas it works OK from command line, tried all combo with single/double quotes, nothing help, have some syntax errors, <-ne> not found, etc...
What is the magic?

bash_$ PROMPT_COMMAND='echo -ne "\033]0;#64 $@${HOSTNAME}: ${PWD}\007"'

Thanks all
T

What, exactly are you trying to accomplish? Just setting your own window title while running a script?

echo -ne "\033]0;THIS IS MY FANCY WINDOW TITLE\007" ; sleep 1

If PROMPT_COMMAND is overwriting it with its own title, you'll see the title change for 1 second then change back.

Or do you want to change the title BASH shows?