The code stores full paths to the "ListPath". So it should work perfectly, even if you loop over the relevant code for each folder from your configuration file.
The code to loop would start from (including):
and end with (including):
The code to loop would start from (including):
Write-Host "Looking for new files..."
and end with (including):
{
Write-Host "Done, no new files found."
}