The below is a slightly cleaned up version of what I am trying to do.
To summarize, I want to have the script watching for the *CSV TRIGGER* string, grab the file name, open a capture file using that name, capture the data, close the file, clean up after itself.
All seems to work as I wish...