Hello Nicholas Chiappetta,
Welcome to Microsoft Q&A forum.
As I checked, the version of NBA 2k27 on Microsoft Store and Xbox Store is for Xbox version only, so it is expected that it cannot be used for PC.
If you have made the purchase on one of the stores, you can submit a refund request by signing in to account.microsoft.com/billing/orders or submit the refund on this webform.
Thank you for your understanding.