jj, the thing of it is I had more luck when I used the code you posted as the basic idea and modified for my needs from there, at least then I could get entity to spawn and mimic my actions, though it always spawned with the same CT model. When I tried to use an alternative approach using the sh_beyonder code as an example I couldn't even get an entity to appear, it reported to have been created but it was not visible to me ...
I'd be interested in seeing the script you mention to dump the entity variables, in the event you write it again.
Mugwump