use Exec instead of Invoke-Expression to avoid error due to ErrorActionPreference