Changing equipment during battle (VX Ace)

I'd like to add an option to the battle menu in VX ace that allows the character to change their equipment.

For example; You'd be fighting a fire element enemy using an earth element weapon and with thunder element armor equipped. This new battle option would let you swap out

your weapon and armor for something more elementally appropriate, at the cost of that counting as your action that turn.

I've searched through the tutorial and support forums here with no success. I've even tried to add it myself by going into the script editor and looking under "Window_Battlecommand" and fooling around with that, but it hasn't gotten me anywhere.

I don't expect anyone to write an entire script for me, but if someone could point me in the right direction on how to do something like this or at least tell me whether this can easily be done or not, I'd appreciate it greatly!
you can do it in Yanfly's Command script...
Thanks! I'll go check it out right now! I'll be busy for the next few days and won't be able to log in, but I'll reply as to whether it worked as soon as I can. Thanks again!
Note: You might need to install some of his scripts too...
Nevermind! I figured out what I was doing wrong. I appreciate your help though, and will check out Yanfly's scripts if I ever try doing something more complex.

Original thread: https://forums.rpgmakerweb.com/threads/changing-equipment-during-battle-vx-ace.18495/