code: def load_script(zap_helper, **options):
      
      with zap_error_handler():
          if not os.path.isfile(options['file_path']):
              raise ZAPError('No file found at "{0}", cannot load script.'.format(options['file_path']))
  
          if not _is_valid_script_engine(zap_helper.zap, options['engine']):
              engines = zap_helper.zap.script.list_engines
              raise ZAPError('Invalid script engine provided. Valid engines are: {0}'.format(', '.join(engines)))
  
          console.debug('Loading script "{0}" from "{1}"'.format(options['name'], options['file_path']))
          result = zap_helper.zap.script.load(options['name'], options['script_type'], options['engine'],
                                              options['file_path'], scriptdescription=options['description'])
  
          if result != 'OK':
              raise ZAPError('Error loading script: {0}'.format(result))
  
      console.info('Script "{0}" loaded'.format(options['name']))
docs: Load a script from a file.