Controlling position of Global or Group Palette

Thanks for an awesome macro by @noisneil, Create and Populate a 'Show Palette of Macros' Macro, I'm growing quite fond of the Show Palette of Macros action.

To reposition these palettes, @ComplexPoint's JXA above works perfectly. (The Palette name needs to be set to Macros.)

My question is, how can this type of palette be hidden (or even closed) by a macro?

(This wiki page covers Groups Palettes and I've created macros to show and hide these palettes, but I've not found the corresponding controls for palettes created with the Show Palette of Macros action.)

Thanks in advance to anyone that can provide guidance.