Australia got over the top of Pakistan to win the first T20I in a rain-impacted match.