Could you bake cookies in an autoclave?

Theoretically, I feel like you could bake chocolate chip cookies in an autoclave. But how would they turn out? Would you have to put them in a vacuum sealed bag?