Shifted symmetric functions, quasimodular forms and Hamiltonian operators