Scripted asset action doesn't prompt for new input if multiple assets are selected

Basically I would like to know if there’s a way when you select multiple assets to prompt the user for function inputs as many times as the selected item count. Right now it only happens once, which makes sense since the function is only called once. I looked around but I can’t seem to find a way to call the prompt to open manually instead of it happening automatically just because the function has inputs.