The more I look at this, the more I think Setoption is returning the wrong value. Wouldn't FileRedirection be on by default under x64? And turning the redirection on causes the script to work.