This formula returns routes with up to 25 destinations for driving, driving-traffic, walking, and cycling transit profiles. With the returned object you can map out the route as below by adding the route poly-line to a StaticImage() or you can parse out the individual steps from the returned object.
Waypoints can either be entered manually or chosen from results found on the Search page. Also worth mentioning is that cycling and walking profiles have limited exclude options available, “toll”, “motorway”, and “unpaved” options will not work for either profile and “ferry” will also not work for cycling routes.