To run a pool script from any event you need to click on the (+) inside your event.
Go to functions and choose “Run Pool Script”.

You need now define your needet script by clicking on the target icon.