code: def disable_script(zap_helper, script_name):
      
      with zap_error_handler():
          console.debug('Disabling script "{0}"'.format(script_name))
          result = zap_helper.zap.script.disable(script_name)
  
          if result != 'OK':
              raise ZAPError('Error disabling script: {0}'.format(result))
  
      console.info('Script "{0}" disabled'.format(script_name))
docs: Disable a script.