How can I iterate over all Write nodes in a project?

That’s it, I can’t find the answer :confused:
I need to adjust all Write nodes in my script but am failing on the step where I can iterate over them all.
It’s probably right in front of me?!

I tried selecting all nodes then iterating over the selection, which works in GUI mode, but I need to do this in command line mode.