Example 13 Find all polynomials $P(x)$ that satisfy $(x-1) P(x+1)-(x+2) P(x) \equiv 0(x \in \mathbf{R})$.
Solve: This example can be solved similarly to Example 10 to obtain $P(x)=a\left(x^{2}-x\right)$.