Here’s a thread that appears to be similar to what you’re trying to do:
It looks like C++ is required.