We know with the aid of the comments alluded to above that R is a direct sum R=\bigoplus R_i, where each R_i is a local ring. Then one finds that the decomposition \mathbb{M}_n(R)=\bigoplus_i \mathbb{M}_n(R_i) holds, so that we can express A as a direct sum of matrices over local rings.
Suppose without loss of generality that R is a local ring. Let us denote S:=\mathbb{M}_n(R) and let us decompose A\in \mathbb{M}_n(R) into a potent and a zero-square matrix. Let I be the unique maximal ideal of R. By hypothesis, one calculates that I^2=0 because I coincides with the Jacobson radical rad(R) of R. Clearly, J:=rad(\mathbb{M}_n(R))=\mathbb{M}_n(rad(R))=\mathbb{M}_n(I) and hence J^2=0.
Let us consider the residue class of A modulo J: In fact, \bar A\in S/J\cong \mathbb{M}_n(R/I). Since R/I is a finite field, by virtue of Proposition 2.2 there exists k\in \mathbb{N} such that \bar A=\hat P+\hat N with \hat P^{k}=\hat P, \hat N^2=0, and \hat E:=\hat P^{k-1} is an idempotent with \hat E\ \hat N=\hat N\ \hat E=\hat N and \hat E\ \hat P=\hat P\ \hat E=\hat P.
Now, with Lemma 2.3 at hand, there exists an idempotent E of S such that \overline E=\hat E. Let us consider P\in S such that \overline P=\hat P. Since \hat E\Hat P=\hat P\hat E=\hat P, we have that \overline{EP}=\overline{PE}=\overline P and we can suppose (by replacing P by EPE) that EP=PE=P. Applying
Lemma 2.4 there exists N\in S such that N^2=0 with \overline N=\hat N and we can suppose, again replacing N by ENE, that N=EN=NE. Furthermore, employing Lemma 2.5, there exists a prime p>1 such that P^{(k-1)p}=E.
Let us take V\in J such that A=P+N+V, and write
A=\underbrace{P+EVE+(1-E)VE+EV(1-E)}+\underbrace{N+(1-E)V(1-E)}.\qquad{(*)}
(1) Let us show that P+EVE+(1-E)VE+EV(1-E) is a potent element of S: In fact, notice that for any n\in \mathbb{N}
\begin{aligned}
((P&+EVE)+(1-E)VE+EV(1-E))^n\\
&=(P+EVE)^n+(1-E)VE(P+EVE)^{n-1}+(P+EVE)^{n-1}EV(1-E)
\end{aligned}
because EVE, (1-E)VE, EV(1-E) and (1-E)V(1-E) belong to an ideal of zero-square. Moreover, since P is invertible in ESE, the matrix P+EVE is invertible and, therefore, it is k-potent. Furthermore, P+EVE satisfies the conditions of Lemma 2.5, so we detect that ((P+EVE)^{(k-1)p})=E and (P+EVE)^{(k-1)p+1}=P+EVE. Then
\begin{aligned}
((P+EVE)&+(1-E)VE+EV(1-E))^{(k-1)p+1}\\&=(P+EVE)^{(k-1)p+1}+(1-E)VE(P+EVE)^{(k-1)p}\\&+(P+EVE)^{(k-1)p}EV(1-E)\\&=P+EVE+(1-E)VE+EV(1-E).
\end{aligned}
(2) Let us show that N+(1-E)V(1-E) has zero-square: Indeed, since EN=NE=N, one has that N(1-E)V(1-E)=0=(1-E)V(1-E)N, and since (1-E)V(1-E) belongs to an ideal of zero-square, one has that
(N+(1-E)V(1-E))^2=N^2+((1-E)V(1-E))^2=0.
Therefore, equality (*) provides the desired decomposition of A into a potent matrix and a zero-square matrix, as wanted.