Basil,
Steplets and steps in general associated with transactions will only execute on the Agentry server when the transaction is transmitted from the client. From your original post it appears your requirement is to generate this on the device (not server side) so you will need to move that code out of a steplet and into local java classes that you can still kickoff from the command line.
--Bill