Apply operations on hidden objects?

How do I apply operations on objects that are not visible in the viewport? On ones that I select in the Outliner.

In this specific case I have a large number of objects, organised in collections. Some of them are invisible because of different reasons: hidden in viewport, disabled in viewport, or their parent-collection (or parent-parent collection, etc.) is hidden or disabled.
Is there a way to do operations on them? Specifically: parent without inverse and clear parent inverse but also things like move, rotate, etc.?

Otherwise I’d need to go through them one by one, up through their “chain of visibility” (including all parent-collections, etc.) to make them visibile, then do the operation, and then do the same visibility changes back again.