He took two aspirin to cure his cold.

Literal

Cold [subject-が] heal [purpose-ように] he [topic-は] aspirin [object-を] two-tablets drank.

風邪が治るように is the purpose clause: 'so that the cold heals.' アスピリン is the loanword for aspirin. 二錠 means 'two tablets.'