OK, I’m starting to figure out what’s going on. Inside the VSC , powershell tab, I pasted the command with the full path pre-pended. That gave me the COM5 Access is denied error. I noted that my running program was being monitored…
… and guessed that VSC doesn’t have the ability to stop that and process the erase command. So, I deleted that step and rerun the command and that worked.