The end cut is easy on the compound miter saw.
For the notch, my first thought was a router on an angled sled as Greg Hill suggested. However, thinking about it some more, I'd suggest a dado blade in the (borrowed) table saw.
Use a crosscut sled to hold the fence rail (loads of examples on YouTube about building and using crosscut sleds, from simple to extremely fancy) then run it past the dado head tilted 5°. Most table saws can only tilt to 45°, so you'll need to cut the reciprocal angle by running the rail on the other side of the blade. Your table saw owning friend should be able to help you with the proper setup here.
A crosscut sled will hold the rail at a 90° angle to the blade with no issue. You
may will need to add a hold down clamp or two, something like this:
Image courtesy of Harbor Freight. Generally satisfied customer, no other affiliation.
One or two of those will clamp and release very quickly, yet hold a long fence rail very securely for the cut. (Note, this item is all of $5 at HF, so it's not a huge investment. They're available at other retailers, too.)
This has two distinct advantages over the router table sled.
Even if you have to build a crosscut sled (and your friend may already have one), your jig build time should be much less than building a sled for the router. Especially since you need to make an angled sled (which will involve, most likely, ripping lumber at a 5° angle and borrowing the table saw anyway).
Once you've got the saw set up (blade angle, cut depth, distance from the fence), you'll be able to make all the cuts in no time.
With the router sled, you can set up a fence of sorts to position it at the right distance from the end of the rail, but it would take more time (as I'm envisioning it) to set up the sled, position it, clamp it down and put the router into it.
The table saw will easily make the cut in one pass. The router (as noted in the comments on Greg's answer) will most likely need to make a couple of passes. It's often difficult and potentially unsafe to make cuts that big with a router. Having to either make passes at half-depth on all boards, reset the router to full-depth and do them again, or make two passes on each board, resetting the router depth will be more time consuming.