New condition and action scripts

Hello,
can anybody give me an advice how to make the following scripts (for use with
rt-crontool):
When the status of a ticket is ‘STALLED’ AND it has last acted upon 14 days
ago, then change the status to ‘OPEN’. I need a Condition and Action Scipt
for this.
Many thanks in Advance.

Greetings
Markus Frahm