Sorry for the delay but this should do it!
# popclip
name: Bar to Hyphen
icon: square filled |
javascript: popclip.pasteText(popclip.input.text.replace(/\|/g, '-'))
description: Replace vertical bars with hyphens
(The above block is an extension snippet - select it to install the extension with PopClip)