Hide Apps on External Monitors

Hi all,

How would I go about setting up a macro that hides all the apps showing on an external monitor?

Do you want to hide (minimise?) the app
or
all the windows that are open on the external monitor? i.e. windows on the other monitor will remain unchanged?

Just minimising them so I'm left with the desktop would do fine.