You’d put “action uses wow64 redirection false” anywhere before your call to “wait” or “waithidden” to use the real \windows\system32 directories. I usually put it as the first line of my action script.
//actionscript here
action uses wow64 redirection false
//with wow64 redirection disabled, this runs the native (i.e. x64) version of query.exe
waithidden “{pathname of system folder}\query.exe” (parameters for what you want it to do)
// and this runs the 64-bit version of cscript to execute vbscript:
waithidden “{pathname of system folder}\cscript.exe” “__Download\myscript.vbs”
Oh, and if you don’t set “action uses wow64 redirection false”, the cmd.exe that you spawn will be the 32-bit redirected \windows\syswow64\cmd.exe as well.