I believe this does what you want, but not sure if this is a global or local redirect:
Win32::Process::Create($ProcessObj,
'c:\WINDOWS\system32\cmd.exe',
'/c dir /console /command bye > my_file',
0,
NORMAL_PRIORITY_CLASS,
".")|| die ErrorReport()
And yeah, I did not set all of the parameters the way you did, but should not matter