Expectation variables

Either you manually introduce auxiliary variables (see e.g. Expected value of a power) or you use Dynare’s EXPECTATION()() operator (see the manual).