Replace text using Powershell

(Get-Content .\file.txt) -replace "!", ","  | Set-Content -Path .\replaced.txt