How to clone a Post Process Profile in editor script ?

I want to clone a post process profile asset via script, instead of clicking “Clone” in inspector. Anyone know how?

I’ve not tried it with scripts but AssetDatabase.CopyAsset works with regular prefabs/textures etc… There’s a good example here: Unity - Scripting API: AssetDatabase.StartAssetEditing

Thanks, I’ve tried, and it works well.