#TodayILearned that if you try to replace a single backslah in Powershell it throws an error

You can do:

$String -replace “\”, ‘-’