VBScript with MS Office supports calling Excel functionality for searching and managing csv files.

I used that for a very similar script that managed MFDs across a network.

If I can find it,...