I hope you don't catch a cold.

Literal

Cold [object-を] catch-not [wish-ますように].

~ませんように is a wish/prayer form: 'may you not catch a cold.' Used for hopes and prayers. ように here expresses a wish rather than purpose.