The Senators were finally able to find the right recipe to score a shootout victory Monday night.

With the Cake Boss among the gathering of 15,786 at the Canadian Tire Centre, the Senators enjoyed some home cooking with a dramatic 5-4 win over the Philadelphia Flyers.

Captain Jason Spezza scored his first shootout goal of the season to beat Steve Mason and give the club its first win in five attempts in the skills competition and halted the club’s five-game losing streak at home with the first win since Nov. 15.

“You take pride in that stuff. It felt good. I was glad the coach stuck with me. I got the chance and put it in,” said Spezza. “We found a way to win. Our effort has been more consistent the last six or seven games and we got rewarded.”

Clarke MacArthur scored twice in regulation while Bobby Ryan added two assists. Kyle Turris and Patrick Wiercioch also chipped in to help goalie Craig Anderson get the victory.

“It’s about time. We’ve been in this situation a few times and haven’t been on the right side of that,” said Anderson, who made 25 stops. “We found a way to get two points. That’s all that mattered.

“You have to be excited about two points.”

Kimmo Timmonen, Jakub Voracek, Luke Schenn and Michael Raffl replied for the Flyers, but Anderson stepped up late and was helped by the fact Sean Couturier hit the post on the final shot in the shootout.

While the Senators took a 4-3 lead on Turris’ first in nine games at 8:21 of the third, they couldn’t hold the lead and Anderson couldn’t come up with the save on Timonen’s floater at 10:58 from the point to tie it up.

The Senators had already pulled off a comeback. MacArthur’s second at 2:27 of the third tied it up 3-3 and brought the crowd back into the game. Ryan’s attempted pass bounced off MacArthur and by Mason glove side.

“It’s nice to get a win at home. You’ve got to start somewhere,” said MacArthur. “That’s not pretty, having a couple of leads and giving them up, but we stuck with it.

“Two points is two points. We’re happy with that and we’ve got to keep going.”

The Senators just can’t seem to play 60 minutes. Try as desperately as they do, they can’t get the job done. It didn’t help that Anderson allowed three goals on the first 11 shots and the Senators trailed 3-2 after 40 minutes.