What do you mean by changing the attributes, you mean when the player gets the item the enchants are already on it?
Honestly, I don't think this is possible. CPS/Knockback are client side.
Separate names with a comma.