MZ Change Command List based on Party Position

Hi again, I have another question.

So I've moved the Battler Sprite based on their index, on the battle screen. My next goal is to restrict which menus the battlers have access to based on that index again, but I'm not sure how to access that information because the window functions seem to not contain anything that can hold of the Position within the party.
I know that you can do this
$gameParty.members()

Is there another way?

Original thread: https://forums.rpgmakerweb.com/threads/change-command-list-based-on-party-position.135131/