Hi Lian,
As the behavior of "Tangent to surface and parallel to plane"in UI, you need select the planar face or another work plane as the reference work plane, but not an edge.
Here is the code. To implement it, please choose cylindrical face first, then choose a planar face:

Sub Test()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oWPs As WorkPlanes
Set oWPs = oDoc.ComponentDefinition.WorkPlanes
Dim oClindFace As Face
Set oClindFace = oDoc.SelectSet(1)
Dim oFace1 As Face
Set oFace1 = oDoc.SelectSet(2)
Dim oWP As WorkPlane
Set oWP = oWPs.AddByPlaneAndTangent(oFace1, oClindFace, ThisApplication.TransientGeometry.CreatePoint(0, 0, 0))
End Sub

Jane Fan
Inventor/Fusion QA Engineer