It seems that you are having round worm infestation.
Go for one course of anti helminth course like Albendazole
type of medicine will give relief from itching.
It has no effect on worms so it will not kill worms so you are not going to get rid of worms with this type of medicine.
Keep your nails well cut and clean,
Ok and take care.