MV Secret battle menu

I'm trying to implement a secret battle menu, but I'm having trouble having the troop event recognize that it's the player's turn. Using Yanfly's Advanced Switches and Variables I have tried the following script calls that I found online:

Eval: $gameParty.members().some(actor => actor.isInputting())
Eval: $gameParty.members()[0].isInputting()

I've used this plugin during battle successfully to trigger other troop events, so I'm assuming it's the code that is wrong. Any suggestions are very much appreciated!
I don't think it's even checking the troop events in the input phase. Maybe if you explain what your 'secret battle menu' is, someone can give a suggestion. I think you can do stuff like that with SRD Hudmaker at least.
maybe you need to check: BattleMembers.members() inside battle?
for Enemy, $gameTroop.members.

but outside battles, your scriptcalls are correct, but inside battle,
refer them as BattleMembers (you need to find the right calls) for actorId.
I don't think it's even checking the troop events in the input phase. Maybe if you explain what your 'secret battle menu' is, someone can give a suggestion. I think you can do stuff like that with SRD Hudmaker at least.
What I'm trying to do is have a secret menu that only appears once the player has held down a button. This menu only needs to appear during the player's turn in battle. I'm currently using Yanfly's CTB battle system if that helps. I've searched through the code and can't find anything that let's me trigger the troop event when the player's input menu is active.

Original thread: https://forums.rpgmakerweb.com/threads/secret-battle-menu.179423/