Take a large pan.
Add the butter into the pan & melt it.
Add the potatoes, salt and pepper into the pan.
Cook the potatoes well and then add the cayenne pepper into the pan.
Cook the dish for 2 to 3 minutes and then dish out.
Add the cream cheese when the mixture cools down.
Mix everything well.
Add the formed mixture into a greased baking dish.
Place the baking dish in a preheated oven.
Bake the tortilla for about 20 minutes.
Dish out the tortilla when it attains a golden-brown color.
The dish is ready to be served.