Pry off the existing brick moulding from around the window using your hammer and pry bar.
Measure the width of the opening between the two top corners. Mark out the measurement on a piece of new brick moulding.
Put the moulding on the miter saw, face up, so the marked bottom edge flush against the saw "fence" (the rail that runs along the back of the platform). Slide the moulding to put one of the marks under the blade.
Swivel the blade 45 degrees outward, toward the close end of the moulding. Cut it.
Move the moulding so the other mark is under the blade. Turn the blade in the opposite direction as before, again at 45 degrees, Make the cut.
Set the moulding along the top of the opening, so the bottom edge is lined up with the window casing. The mitered cuts should angle up and off the corners.
Use your hammer and trim nails to secure the moulding to the wall, putting them along the top and bottom every foot or so.
Repeat the process for each side of the window. The miters on the ends of the moulding should butt tightly to form the corners.
Run caulk around the trim where it meets the wall and the window casing.