The matrices $F,G$ are known from the standard first-order linear solution. We need to compute the $H_i, 0\leq i\leq T$. Plugging in repeatedly from the solution yields:
Recognizing that the matrix equation needs to hold for all values of the states, exogenous, and exogenous deterministic variables yields the restrictions: