Hmmm kinda a shot in the dark put try and add this to the top
SetTitleMatchMode,2

before the winget command