I heard that you can redeem an Xbox card in the Microsoft store, right?
Yes, should go. At least it worked for a friend.
You can redeem any Xbox prepaid card in the Windows 10 Store.
Yes will work. Redeem somewhere on the edge and then just enter the code, then buy the games or apps you want
Since the codes have the same layout, I strongly assume that these codes can also be used in the Microsoft store. There was nothing wrong with my research. Just give it a try. The code remains if it is not recognized. If you don't have an Xbox, you can sell the credit card to a friend.