sharepoint on premise – Looping through all documents in a site through powershell

I’m new to powershell and trying to loop through all document libraries of a site and find/output those file locations into a CSV which have a custom column value equals Null.

Any link or sample code would be very helpful.

Please note we are using Sharepoint 2016 on-premise.