find and replace characters in paragraph styles in indesign

Hi Team,

I need to change the space with “_” in a paragraph styles in InDesign through script. Can any one help me out.

–G