There is the useful function run_server_side_script but it is not documented properly.
run_server_side_script