realm script