Over the weekend I have worked on IMWS and IMatch 2017.
IMWS now has features which allow scripts to create, update and remove categories. And to assign and un-assign files. And to configure category properties like description, colors or formulas.
I have also written a sample which shows how to use these functions. This app will be shipped with IMatch 2017.
(https://www.photools.com/community/index.php?action=dlattach;topic=6414.0;attach=14652;image)
Click to enlarge.