This script only reads the second type of file (DATE-Tweet-Archive-DATE.md), the ones containing all your tweets (it doesn't open anything else). To use the script ...
"script-style" means assembling the internal representation of the input data by executing commands one at a time. A close example is the Dockerfile.