How do I transfer my Xbox account to my pc so I can access the market when keeping all of my stuff

That’s the neat part: you don’t.

You cannot.
You can read more here: