Question: what to do when your child keeps coughing at night?
Answer: For a "barky" or "croupy" cough, turn on the hot water in the shower in your bathroom and close the door so the room will steam up. ... 
A cool-mist humidifier in your child's bedroom might help with sleep.
Sometimes, brief exposure to cool air outdoors can relieve the cough.