Pre-attaching augments to weapons for Yanfly's Attach Augments

Hi everyone! I need some help with Attachable Augments (YEP). (RPGMV)

I'm planning to use the plugin in a different way than its intended. I want weapons to have augments pre-attached to it without needing the player to equip it themselves. Is there any way to do this?

Thanks in advance!
bump
I'm not sure if this will end up being exactly useful for you in your specific use-case, but I used the Item Upgrade Plugin to automatically upgrade items that were created on a specific scene, to allow for player-synthesized items to be stronger than the equivalent item when purchased at a vendor.

JavaScript:
<On Creation Eval>
if (SceneManager._scene.constructor.name == "Scene_Crafting"){
 ItemManager.checkIUSEffects(item, $dataItems[101])
}
</On Creation Eval>
Put that tag on an item, and it will have the same effect. Which is to say, if the item was 'created' when the current scene is Scene_Crafting, it uses the item upgrade function to upgrade the item with the upgrade item in slot 101 in the items database.

You can change this to use the function for attaching augments instead, though I'm not sure what that would be, it shouldn't be hard to find it. You can also change the if check to look for a switch or something instead of the current scene, so you could flip a switch to cause an item to be pre-augmented, or otherwise be normal.

If you want this to be random, this probably won't help you much, but it's a good start.
Try my Augment extension plugin.

This is just what I needed. Thank you!
Facing the same issue, I did some experiments. This snippet is not perfect, but maybe helps you and/or other people here.

JavaScript:
var weapon = $gameParty.allItems().filter(
    item => item.name == "Blaster")[0];

var augment = $gameParty.allItems().filter(
    item => item.name == "Glyph of Voltage")[0];

ItemManager.applyAugmentEffects(weapon, augment, 0, 1);

As you can see it only works when you have exactly one of the weapon / augment

Original thread: https://forums.rpgmakerweb.com/threads/pre-attaching-augments-to-weapons-for-yanflys-attach-augments.124864/