Green’s Dictionary of Slang

cook someone’s goose v.

[mid-19C+]

1. to kill; thus one’s goose is cooked, one is dying; cooked goose, one who is doomed.

2. (also cook someone’s gruel, do someone’s goose) to spoil someone’s chances.

3. to give someone their due deserts.