In case anyone else encountered this problem. You have to edit your function and check the "has return value" box. Then your return will work. After this you have to use "Call Function" again and now you have a new field for saving results.
@Fox Does the user have to have their host file set for the captcha service they are using? Is there a way to set a npm package in bas itself and not require user to change their host file?
Why change the host file at all? The module allows you to specify the ip of the service yourself.