custom command enhancement

could it be possible to have custom commands save input dialogs window result to be used within the same command?
it would be quite useful for 'chained' commands, to be able to, for example, add an user, change its tagline to something and do something else with him