Without a doubt, a judge has far more powers when compared to an IAS. Judges are not inclusive of the 7th pay commission and receive a much higher salary than the IAS under the National Judicial Pay Commission. In fact, in a ruling in 1992, the Supreme Court clearly stated that there can be no comparison between Judiciary and IAS.
However, power or the pay scale is not the only factor that should determine your course of a career. You must also reflect which career would give you better satisfaction and then opt for it.