Returning values in a transparent command?

I was attempting to make my own one shot OSnap kind of thing, and I couldn’t find any info on if it was possible to return a 3dPoint to the command I am running inside of. Is this possible in either Python or C#?

Thanks,

Sam