There are many causes for sudden episodic cough such as allergic airway disorder, post viral cough, reflux laryngopharyngitis which is type of acidity related disorder etc. You may need to be treated empirically for these problems as diagnosis may be difficult
Next Steps
Consult nearby pulmonologist for confirmation of diagnosis and appropriate treatment if required