where pStyle is a reference (not just the name) of an existing paragraph style. Apparently clearingOverrides defaults to true but I'm in the habit of always specifying it.
You might see examples saying something like text.appliedParagraphStyle = pStyle but that doesn't give you the option of clearing overrides at the same time. Also note, that clearingOverrides doesn't do anything about any character styles already applied. So you may want to add a line to set the appliedCharacterStyle to [None].