Run script as custom event

instead of only API requests, also allow some script to be executed