As already suggested, you can use Text Files as a common saving point.

There can be one more way. If you are owning both the EXEs then you can have TEST2 accept a commanline parameter. Once that is done then you can call TEST2 from TEST1 using Shell and pass 123 as a CommanLine Parameter. TEST will internally use it in whatever way it is supposed to.