Pat Cummins, Nathan Lyon and Ashton Agar took three wickets each to wrap up the Bangladesh innings despite half-centuries from Tamim Iqbal and Shakib al Hasan.