If the target of -PushBin is an archive and the contents of that archive already exist on the target host, the call to shell.application.copyhere() hangs waiting for user confirmation to overwrite. Since this in non-interactive, it is impossible to acknowledge the prompt, leading to an infinite wait on the job.
This method has an override that allows the caller to pass options, so we need to modify this block to send "yes to all."
If the target of -PushBin is an archive and the contents of that archive already exist on the target host, the call to shell.application.copyhere() hangs waiting for user confirmation to overwrite. Since this in non-interactive, it is impossible to acknowledge the prompt, leading to an infinite wait on the job.
This method has an override that allows the caller to pass options, so we need to modify this block to send "yes to all."