You could probably export $Array to a file then get a script to read through it.
I believe it's done through export("$Array*", "config/somewhere/filename", 0);
0 is a flag to overwrite the file with a new export instead of adding the export to the end.