Have guest party member

For the story I am creating I need a 5th battler slot.  However I want the 5th slot to be a "guest" that is controlled by AI I write.

How do I specify/write make a battler be controlled by AI instead of the player, and not allow the player to change anything (equipment, spells, etc outside of combat)?  How do I make the 5th person fit in the battle menu in the bottom?  How do I have different guests have different AIs?

FYI I am using the following Plugins:

YEP_CoreEngine

YEP_MessageCore

YEP_BattleEngineCore

YEP_X_ActSeqPack1

YEP_X_ActSeqPack2.

FYI: This is how I made it so I could have 5 battlers: I changed the maxBattleMembers in rpg_objects.js from 4 to 5.  If there is a way to write a plugin so I could override this in a less intrusive way, I wouldn't mind being pointed to some intro to writing your own plugins.

Game_Party.prototype.maxBattleMembers = function() {
    return 5;
};

I've been programming for over 20 years in many different languages including Java but never Javascript.  So if there are any recommended locations to start learning how to do all of this, I would not be afraid to start learning myself.
I found the scripting forum page for RPG Maker MV.  This post is in the wrong category and I can't see how to delete it.
I believe there's a plugin that'll allow for 5 party members at once. You could use that plugin to suit your needs, if you can find it. I don't recall what it is exactly, off the top of my head. I think Nio made it.
You don't delete it. You report the post and ask for it to be moved to the correct forum. I will do that now for you.
Thank you Shaz, sorry for posting to the wrong forum.

Thanks for trying to help Silent Darkness... unfortunately I cannot find the script you are mentioning.

For those that care I found out how to fix the issue with the number of characters displayed in the battle menu using Yanfly's Battle Engine Core.  One of the plugin settings are Window Rows and Command Window Rows.  I changed both of those to 5 and it made it so the command window is big enough to hold 5 people.  However it made it so the 5th character would be underneath the command window so I adjusted the sideview Home Position Y in Yanfly's Battle Engine Core plugin so the players started higher.

So my questions remaining are:

How do I make one battler be controlled by AI instead of the player?

How do I make each guest have different AI?

Original thread: https://forums.rpgmakerweb.com/threads/have-guest-party-member.49073/