The first step to making Dunkin' Donuts hash browns is to peel and shred the potatoes. You can use a food processor with a shredding blade or a box grater to shred the potatoes. Once you've shredded the potatoes, place them in a bowl of cold water to remove excess starch.
After the potatoes have soaked in the water for about 10 minutes, drain them and use a clean kitchen towel or paper towels to dry them thoroughly. You want to remove as much moisture as possible to ensure that the hash browns turn out crispy and not soggy.
In a large bowl, combine the shredded potatoes, salt, black pepper, garlic powder, onion powder, and flour. Mix the ingredients together until the potatoes are coated in the seasoning and flour mixture.
Using your hands, form the seasoned potato mixture into small patties about 3 inches in diameter and 1/2 inch thick. You can make them thinner or thicker depending on your preference.
Heat the vegetable oil in a large skillet over medium-high heat. Once the oil is hot, carefully add the hash brown patties to the skillet. Cook the patties for about 3-4 minutes on each side or until they are golden brown and crispy. Use a slotted spatula to remove the hash browns from the skillet and place them on a paper towel-lined plate to drain any excess oil.