pc.createPerk("Perk Name", 0, 0, 0, 0, "Flavor/Description Text")
0, 0, 0, 0: Perks have up to 4 values, but most don't use all four.
For Perk values, you can look in the Source Code linked to on a Stickied thread.
That works for most commands. Find an item or event that does what you want and...