Object moving over a 3D path

How do I create a path in 3D space of an object to move over it? I realise that THREE.path can only be used with Vector2s.
I also need to incorporate Bezier curve in the path, so can I somehow use QuadraticBezierCurve3 in it.

Here’s a pen that uses a 3D path to move the camera, you can use any object of course.

Thanks for that.
But I want the object to mover over a series of straight lines and bezier curves.
So, how do I do that?