Is there a way to toggle "Hide all windows"?

I'm using "Hide all windows" when I want to work on the desktop. Is there a way to make this a toggle so that I can return all the windows to where they were previously when I'm done? Alternatively, is there a separate command that makes this possible? I'm not finding it. Thank you!

you can use the "run apple script" action with this script:

tell application "System Events" to set the visible of every process to true