Did you ever get an answer to this question? I think I know what the issue is, but can't figure out the switch apply the "y" at the end of the command to execute Yes. I put this command below:
request restart system
y
But it's never getting to that second line because it didn't finish the first command of "request restart system" because it's waiting for user input of "y". Any ideas?