With the function $f(x) = x^3 - 12 x + 2$. To find the least value of the function $f(x)$ with $-2\leqslant x \leqslant 2$, I tried
Minimize[{f[x], -2 <= x <= 2}, x]
{-14, {x -> 2}}
I am trying to find the least value of the function $(f(x+m))^2$, I tried
Clear["Global`*"]
f[x_] = x^3 - 12 x + 2;
g[x_] = f[x + m]^2;
Minimize[{g[x], -2 <= x <= 2}, x]
I don't get the Out of Mathematica. How can I find the least value of a function with parameter $(f(x+m))^2$?