to compile the extension with
after I have invoked the VC Build tools with
msbuild osquery.sln /p:Configuration=Release /p:PlatformType=x64 /p:Platform=x64 /t:external_extension_test /m /v:m
Invoke-BatchFile "$env:VS140COMNTOOLS\..\..\vc\vcvarsall.bat" amd64
does not seem to be a PS builtin, but I was able to copy/paste this implementation to get it to work (https://github.com/jbake/Powershell_scripts/blob/master/Invoke-BatchFile.ps1). Where are you getting it from?
, but it's very likely the same as the one you grabbed 🙂