Whole powder pattern modelling macros for TOPAS