Only with an Enterprise plan
The use of the proxy is determined by DNS, so you would need a dedicated “DNS only” hostname to run this script.
Other options are to modify the script to return periodically or modify the script so it is started and then poll for completion.