merlin script