Construct 2 looks like a limited sandbox environment without the ability to call external dlls. We're adding a NodeJS example to TA 4.1, so if Construct 2 can be convinced to run NodeJS code, then that might be a solution.
Another alternative is using TurboActivate in your installers. There are a number of solutions available on macOS, but none are particularly user-friendly.