Setting title of window

How can I set the title of a window (window 1)?

set title of window "whatever" to "Example Title"

Thanks, got it working :smiley: