Hamilton Jacobi Bellman equations in infinite dimensions with quadratic and superquadratic Hamiltonian