Does your version of InJoy have Dial-On-Demand? If so, it should negate the need for a script - just turn it on and set the relevant timeouts, etc. InJoy would do it's magic when called by PMMail. If not (it does cost more), then you'll need a script I guess.
Cheers,
Scott.