MV Forcing Action Script Call inside a common event doesn't work.

These are two simple script call I tried which are triggered inside a common event using Yanfy Plugins and they don't do anything.
◆Comentario:FORCE A SKILL
◆Script:$gameVariables.setValue(1, target.index());
: :var index = v[1]
: :$gameParty.members()[index].forceAction(14, -1);
: :BattleManager.forceAction($gameParty.members()[index]);
◆Comentario:-----------------------------
◆Script:$gameParty.members()[1].forceAction(14, -1);
: :BattleManager.forceAction($gameParty.members()[1]);


Yet I use this event command instead it works.

◆Force action:Charlotte, Rogue Card, Random

I'm using script calls cause they are much more flexible and don't require making a huge list of conditional branches.

Any thoughts?

Original thread: https://forums.rpgmakerweb.com/threads/forcing-action-script-call-inside-a-common-event-doesnt-work.139385/