You use live_call
inside the script body (so, for 2.3, that’s inside the function’s {}) and give it your script arguments, e.g.
// 2.2 and earlier
/// scr_some(a, b)
if (live_call(argument0, argument1)) return live_result;
// ...
// 2.3+:
function scr_some(a, b) {
if (live_call(a, b)) return live_result;
// ...
}
if your script takes varying amount of arguments, check documentation for live_call_ext.