Found my winget install is broken, tried on another machine and this works for silent install:
winget install --id=Anysphere.Cursor `
--silent `
--accept-package-agreements `
--accept-source-agreements `
It appears that the CLI is also installed. Oddly, when I run this manually:
cursor --install-extension msjsdiag.vscode-react-native
It works. But if I put this in a powershell script file (.ps1), it opens the GUI and doesn’t do the installation.