Wrapped publish management command in a transaction.