Welfare comparison in a mod file

Hello to all friends,

I am trying to compare four scenarios (no policy, monetary policy, fiscal policy, and environmental policy) in the model using the compensatory variation function. Now, the question I have is how I can perform this task within a mod file? And is it possible to assess welfare gaps using multiple mod files?

Thank you in advance.
Best,

Have a look at https://github.com/JohannesPfeifer/DSGE_mod/tree/master/Born_Pfeifer_2018/Welfare