I tried some scripts and on my WP computer they worked fine but my W10 they failed. What I ended up doing was testing first line 1 then adding a command line one at a time and using a long delay DELAY 1500 between each command line until I got it working. Then I shortened the delays until it was trying to run too fast and settled on the fastest functional speed. At one point I began testing the the key commands manually to see if they worked at all on my W10 computer. That is where I found GUI command did not work in W10 and after looking up alternate commands I found CTRL ESC would do it.