exposed function for creating a deferred from a cmdVar.