The "Waiting For" is case 'insensitive' so that doesn't matter.
Basically to fix the problem, you need to issue the relevant command to drop from ...530(config) prompt to the non-config mode prompt ...530#.
Normally you'd do this in the 'ExitConfigMode' function, by sending the COMMAND_EXITCONFIG command (which you need to specify in the script header section where the 'Const' are declared.
Incidentally, did you try the HP.Switch.2500 device type at all?
There is no "Enable" mode on the WAP devices so I couldn't use the built in txt script.
I did a work around by using the "CLI Commands" script to change the password and all is ok now.
Thanks for the reply