Script mediator to process messages using the specified script