When executing cf ssh my_app -c '>&2 echo Ciao', "Ciao" is printed correctly to stderr.
When executing cliConnection.CliCommand("ssh", "my_app", "-c", ">&2 echo Ciao"), "Ciao" is printed to stdout, which makes it fundamentally impossible to write good wrappers around cf ssh for non-trivial commands.