1. Before using the above script you will need to generate a list of IA Items usingthe IA CLI Tool (ia search 'collection:XXXXXX' --itemlist > XXXXX_items.txt). Additional paramaters can be used to filter items as needed.
2. Create a location to store all of the files you will need for the project.