To use the script, run it from the commandline like so.
ReloadTermSets.ps1 -web "http://localhost" -test -recurse
- web – This is the web address to use.
- test – This uses a 'test' mode that will output lines detailing found fields and the values found for them in the term store and won’t save the items.
- recurse – This flag will cause the script to recurse through all child sites.