This does not require scripting, although you can do it with a script.
Give the pilot a "Get In" waypoint, and place the waypoint on top of the helicopter. Then, give him whatever subsequent waypoints of your choosing.
He'll board the helicopter, take off, and fly to whereever you specified.