When this freeze happens, are there any of your ships running any automated commands such as CLS, CAG or MK3? If so, try to stop these commands, and see if the freeze still happens.
Since this is a mod issue, you need to post in the appropriate thread in the Scripting and Modding forum where you got the script. The Tech Support forum is for dealing with issues in the unmodded game only. Good luck.