In order to be able to find $A^2$ we need $A$ to be a square matrix that is $n\times n $ matrix.
If the matrix is a square matrix, then the multiplication of powers of $A$ is commutative and $$A^{n+m} = A^n.A^m = A^m.A^n$$
In order to be able to find $A^2$ we need $A$ to be a square matrix that is $n\times n $ matrix.
If the matrix is a square matrix, then the multiplication of powers of $A$ is commutative and $$A^{n+m} = A^n.A^m = A^m.A^n$$