You must be logged in to the X3 control panel to run this script.