Can you try:
def proc = [ 'cmd', '/c', 'remove_files.bat' ].execute()
proc << 'y'
StringBuilder output = new StringBuilder()
proc.waitForProcessOutput(output, output)
println output.toString()
Not sure if it will work, I don't have a Windows machine to test it on :-(