Build archive and export commands by pushing to array