When running a .CATScript whose code was copied from the VBA environment and functions as intended when run in the VBA environment I get the following error:
Your solution should work.
To be able to use "Scripting.Dictionary" in VBA, go to Tools->References and select "Microsoft Scripting Runtime".