Use shellescape to properly escape shell commands

Powershell commands appear to be getting mangled when setting $env:SOMETHING, as the $env is getting replaced by the local shell