Adds script to find all fields of a given type