Scrip needed to change ticket queue

Hi all

I need a scrip (or scrips) that will do the following:

When a ticket in queue AAA or BBB reaches its final priority, move it to
queue HHH and send an email to user@company.com (or a specified RT group)
with a subject ‘Ticket Escalated: ’

Ideally I want to run this with rt-crontool.

Can anyone help?

Regards,
Danie