Stand-in India captain Jasprit Bumrah has produced a masterclass in Perth, taking five wickets to help bowl Australia out for 104.