I downloaded it on steam and want to connect my old account but dont wanna download it again on microsoft store just to get my transfer code

So pretty much what I said in the comment above. is there any way around this?

yes and no, you need to access the game via Microsoft Store in order to get a transfer code however it is possible to use 1 installation to access the game but you gonna need to use Arks Layer Tweaker for that.