@Rick Happy to hear you got it working.
But I’d like to nuance your solution. I’m not a Windows expert but I guess the reason it works in C:\Temp
is because that directory is excluded from some protection mechanisms like Windows UAC or something. Glad you found a workaround, but you did not tackle the underlying issue yet.