Sometimes you need to utilise the GPU immediately or for a one off situation, or even execute shaders from the game thread and for that, rather than create a Scene View Extension, it can be much easier to simply enqueue render commands directly and wait until they’re finished.
https://dev.epicgames.com/community/learning/tutorials/OxE0/unreal-engine-immediate-shader-execution-ue5-c-tutorial