Euler-Lagrange Equation for Perelman's $\mathcal L$-Geodesics