Hi @jbrunkhorst,
Some more info here:
In a nutshell, some commands have a pure command line version and a UI version, but not all of them. The particular command that you mention does not have a command line version.
I think you have a few options. The first is using one of these nodes to get a “draped” polycurve on a surface. From there, you could create a 3D polyline from the polycurve.
If you’re using Civil 3D 2025, there is this node specifically for feature lines.

