I made a script based on Mleos Multivectral Shields. Put it into the scripts\Custom\Techs folder.
Ftech has to be installed and active and the technology needs to be added to the ship plugin.
Example:
Foundation.ShipDef.NX01Enterprise = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile, "SubMenu": SubMenu })
Foundation.ShipDef.NX01Enterprise.dTechs = {
"Weakshield": 50
}