I wrote a script to backup a bunch of files by compressing them using 7-Zip. The problem is some of the files contain "&" and "'" (single quote). I tried replacing those out (in the variables below) with "`'" or "``'", but that didn't work either. I guess I am not sure how escaping characters works when used with [Invoke-Expression](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-expression?view=powershell-6).

Here are the code lines:

```
$exec = "& 'C:\Program Files\7-Zip\7z.exe' u -mx5 -tzip -r  '$DestFileZip' '$DestFile'"

Invoke-Expression $exec

```