I have to admit that I did not really understand yet what exactly you want to do. On your original question though, you can use any shell script from within you scene with a preceding exclamation mark. It is up to you then what you do inside this script, e.g. call xform using some environment variables. You just need to make sure that it writes valid radiance geometry to stdout.
Kolay gelsin, Lars.