in reply to Passing Array to seperate file

One thing to worry about is how you encode the arrays for transmission. If the array only contains simple strings without line endings, then writing each string on a separate line would work well. If the arrays could contain anything, then you need to use a more robust serialization format. I would suggest YAML.

Do you want the first script to run the second script? Or would having them run by an external process work? The Windows NT/2000/XP command shell will do pipes.

command1 | command2
The advantage of the first script writing to stdout, and the second script reading from stdin, is that you can do different combinations:
command1 > output.yml command2 < output.yml