how to call an external script