A small fort, with 4 towers and 4 sides to defend, where pc and a group of survivors take refuge. There will be an attack of orcs, there will be some of those npc fighting on the party side, and a horde of orcs trying to climb the walls and using a ram to gain control of the fort.
Players should focus on defending, let's say, 2 of the sides of the fort (and you can assume the npcs will keep secure the other 2, or orcs come only from one direction, you chose), and apart from killing enemies before they reach the inside, they should take care of the orcs moving the ram before they can break the fort's doors.
Make climb checks for orcs, and assume they need 3 rounds to climb up and attack (double movement on ground for first round, double climbing movement on second round, get up and attack on third round); the ram attacks once each 2 rounds (the other round goes back to take some meters to charge). You can chose hp, hardness and damage of the ram as you wish, (I would suggest something like 4 attacks before the door is gone), also the ram can't attack in a round in which the players managed to kill some of his 'engineers'.
With this tactical advantage the group should be able to kill a lot of enemies, and it will look pretty epic!
Waves of enemies can continuously arrive, until a commander blows the horn of retreat, or orcs are all dead and last ones escape, or, why not, an unexpected help from elves/whatever change the tide of the fight (a bit like The lord of the rings). Whatever suits you more and you need to do to keep the group alive lol.
I played this kind of encounter twice, first time with a horde of semi-intelligent vermins that were simply climbing the walls and attacking, the second time (in another campaign) with the orcs and the ram mechanism: they had to keep the big door up, because inside there were refugees and poor people that would have been slaughtered otherwise!
Hope you find this useful, cheers