Let $f: \mathrm{Spec}(R) \to \mathrm{Spec}(A)$ be a closed embedding of affine Noetherian schemes, given by the ideal $I = \mathrm{ker}(A \twoheadrightarrow R)$. If $I = I^2$, then it's not too hard to show that $I = (e)$ for some idempotent element $e \in A$. This gives a partition of $\mathrm{Spec}(A)$ into disjoint closed subsets $V(e)$ and $V(1-e)$, so $V(I) = V(e)$ is clopen. Conversely, if $im(f) =V(I)$ is open, then we can find an idempotent element $e \in A$ such that $V(e) = V(I)$. To show that $I=I^2$, I want to conclude that $I = (e)$, but a priori we only know their radicals are equal. Is this even true? More generally, is it true that $I = I^2$?
What I'm actually trying to prove is that a finite flat group scheme is etale iff the unit section is open.