MV Version of this script call?

Ruby:
    if $game_party.battle_members.any? { |actor| actor.skills.include?($data_skills[9]) } && BattleManager.actor == $game_actors[2]
    BattleManager.actor.input.set_skill(9)

Context: Battlemanager.actor.input.set_skill in VX Ace was used to make a character automatically use a skill. Battlemanager.actor == $game_actors[2] was used to check if the currently hovered over character is actor 2, to make them auto-use Scan if a button is pressed.

I primarily want to know what the MV version of Battlemanager.actor.input.set_skill is, since it's the most important part of this. (And perhaps the actor.skills.include? section too.)
Just to mention it, your code doesn't do exactly what you say. You're checking for actor ID 2 to be the currently inputting actor, but previously you're checking for anyone in the party to know that skill.

Wouldn't you want to be checking that specific actor to have the skill before you make them use it?

Regardless, the direct translation is:
Code:
if ($gameParty.members().some(actor => actor.skills().includes($dataSkills[9])) && BattleManager.actor()==$gameActors.actor(2))
{
    $gameActors.actor(2).forceAction(9, -1);
    BattleManager.forceAction($gameActors.actor(2));
}

Original thread: https://forums.rpgmakerweb.com/threads/mv-version-of-this-script-call.156576/