Apply the given action to the given windows. If no window IDs and no options are given, the action applies to the focused window.