See this post for details -> viewtopic.php?f=13&t=75097
Summary: ReadProgramError() isn't getting any error text, but JHPJHP's longer dedicated code can get it.
Tested with PureBasic 5.72 (32-bit) on 64-bit Windows. PAexec source -> https://www.poweradmin.com/paexec/
Error output not captured by RunProgram
Re: Error output not captured by RunProgram
PaExec doesn't seems to use regular stdin/stdout probably because it deosn't want to mess with the launching executable.