Just encountered same issue I found that using confirm option can disallow the prompt for overwrite file.
Share here for others.
option batch on #enables batch mode. In batch mode, any choice prompt is automatically replied and any input prompt is cancelled (after short time interval).
option confirm off #set confirm to off to allow overwrites
Share here for others.
option batch on #enables batch mode. In batch mode, any choice prompt is automatically replied and any input prompt is cancelled (after short time interval).
option confirm off #set confirm to off to allow overwrites