Given $A,B\in\mathbb{C}^{n\times n}$. Suppose $A^kB=BA^k$ for some $k\in \mathbb{N}^*$ with $A-E$ nilpotent, where $E$ is the identity. Show that $AB=BA$
I have a primary idea. Suppose $A=E+N$ with $N$ nilpotent, say $N^m=0$ and $N^{m-1}\neq 0$. It is easy to conclude from $A^k B= BA^k$ that for all $f(x)\in \mathbb{C}[x]$ we have $$f(A^k)=f\left( E+kN+\cdots+ \binom{m-1}{k} N^{m-1} \right)\in \mathbb{C}(B)$$
It follows from there is a specific $g(x)$ such that $g(A^k)=E+N=A$.
New Progress
From Jordan-Chevalley Theorem, we can find a polynomial $p(x)$ and $q(x)$ such that $p(A^k)= E$ and $q(A^k)=kN+ r(N)$, where $\deg r(x)\geq 2$ . Notice that we can get $N^{m-1}$ from $q^{m-1}(A^k)$. By analogy, we can get all $N^{i},i=1,2,\dots,m-1$ by linear combination of $q^{l}(A^k)$. Hence we can find the poynormial $g(x)$ such that $g(A^k)=E+N$.