You drop a weapon on the ground, select it with the console to get it’s unique ID (not the same as the general ID) , and then type <UniqueID>.amod <QualitylevelID>. Example, changing a normal Grendel to a calibrated one – FF01DFCC.amod 0028F442
Calibrated (Level 2) – 0028F442
Refined (Level 3) – 0028F443
Advanced (Level 4) – 0028F444
????? (Level 5) – 0028F445 – Increases stats, but not item name