In a colander set over a large bowl, toss the shredded potatoes and onion and squeeze dry. Let the potatoes and onion drain for 2 to 3 minutes, then pour off the liquid in the bowl, leaving the starchy paste at the bottom. Add the potatoes and onions back into the bowl along with the eggs, scallions (if desired,) matzo meal, butter, salt, pepper, baking powder and mix well.