Live Custom render Pass output

Hi, I was wondering if it is possible to do PNG sequence custom render output live in-game similar to what can be done in sequencer? I would have the game run in normal rendering, but same time output the PNG sequence for the custom render passes I want live.