make exec_script use api_post_reqeust

By having `exec_script` use `api_post_request` instead of directly making the call to `make_http_request` we allow `exec_script` to make use of *crumbs* if they're enabled without having to write extra code for it.