def remove_script(identifier)
      removed = @scripts.delete_if { |s| s[:id] == identifier || s[:name] == identifier }
      @need_to_update = true if removed
      removed
    end
def remove_script(identifier)
      removed = @scripts.delete_if { |s| s[:id] == identifier || s[:name] == identifier }
      @need_to_update = true if removed
      removed
    end
Remove a script from this policy by name or id

 @param identfier [String,Integer] the name or id of the script to remove

 @return [Array, nil] the new scripts array or nil if no change