Alejandro,
There is as fundamental difference between CMD and calling from an application!!! Your >output.txt was emty; this means the parameters and/or calling method were incorrect
See my previous post. Perhaps you have to use %WINDIR%\sysnative\manage-bde.exe?
Friedrich