The problem with using Audacity’s native Noise-Reduction in a macro is the NR does not “know” what the noise is you want removed, that requires human-intervention to select a “noise profile”: i.e. audio which only contains noise, e.g. the fan only, (no speech).
So you’d have to prime NR with a noise profile before activating the macro, (if the macro contained an NR step).
Rather than do that, paste-in some noise floor,
(as absolute silence between words is jarring when there is some room (fan) noise during speech).
BTW a compression-ratio of 10 is high. 2/3/4 is more typical.
Compression will inevitably raise the background (fan) noise.