Saving Python return data into a Batch file

Hello,

I am trying to save the return values from a Python script running in Rhino into a batch file. I am able to open Rhino and run the script from the Windows Command Prompt, but I am having trouble transferring the data retrieved from the Python script into the Batch file.

Thanks,
Kaitlyn

Your question is unclear to me. Perhaps some paraphrasing, pictures, examples, expected result will get someone’s attention to answer you.

Yes, I can explain a little more. I want to write a master batch file that opens a Rhino model and runs a Python script from the command line. This Python script will return information and I want to save that information into a batch variable so I can input it into another program.
I have attached my Python script to this reply.
sort_script.py (1.8 KB)

.