Thanks so much for that! Are you willing to show the code of what you were trying? Here is something I had in a batch file that worked (with an npc selected):
unequipall
additem 14831B
additem 913CA
additem 4CE87 48
additem 3000800
additem 2000800
equipitem 14831B
equipitem 3000800
equipitem 2000800
openactorcontainer 1
Now I'm thinking if I just add the line: HideMenu Console it will close the console, and the player is left with the open inventory menu, ready to close with a click. Which is what I want. What were you trying? Maybe someone can help figure it out. Basically, empty their inventory, give them a certain outfit and weapon+ammo, open trade, take everything off, put it back on, close trade then close console. If you take something off manually while the window is open and put it back on and then close it all manually it works and they keep their stuff. It's as if doing it through console doesn't register the same way so they revert.