Right click on your desktop and select New->Shortcut.
It should be some funny bag of characters like HID\ELAN345&BLAH\3&3453456843. You should see a value listed below - select it and Ctrl-V it into notepad or where ever. If it didnt work then something has already gone wrong and you should abort. If that worked then click Enable Device to get your touch screen back and continue. You'll need administrator permissions on your device for any of this to work. The general plan is to get the device ID of the touch screen and use a new option in pnputil.exe to enable/disable it using shortcut links on the desktop. I'm actually not using a surface, but the process should be identical for any windows 10 laptop that has a separate digitizer pen. I wanted to do this today and found that it became much easier as of update 2004 so I'm documenting the process here as this sub is where the question was last asked. There's an archived thread by from a year ago here asking about a switch to disable a touch screen but leaving the pen input enabled on Windows 10.