Moves files into folders based on name matching

This script looks at all files in a specified directory and appropriately matches them to a folder in an existing directory structure, then moves them.

It breaks up the source file name into an array, stripping out non a-ZA-Z characters - compares to an array of similar values from the destination folders, and finds a match. It then moves the file to the designated folder.

No fuzzy logic but is solid for well named files/folders. Generates a log file where the script is executed from.