Why would you run the Exec command through systemd-escape? The help text says that's for the NAME of the unit... Am I missing something?
Also, I'm failing to think of a scripting purpose that requires you to place non-trivial bash directly in a systemd unit that couldn't be solved by writing out the script somewhere and just invoking the script in the unit.