but how I would us TProcess I don't understand.
See:
Executing External Programs in the wiki. In your case the "executable" should be either the shell ('bash', 'dash', 'sh', ...) or 'sudo'.
But if all you want is a program to avoid having to type that command, I'd just use a simple shell script:
#! /bin/sh
echo $1 > /sys/class/backlight/rpi_backlight/brightnessNote that from a programming p.o.v. what your "6' long command line" does is basically to open the "file"
/sys/class/backlight/rpi_backlight/brightness and write to it a string representing the brigthness level, so you could also make do with a simple program/function that writes its parameter (after checking that it's a number in the desired range) to that file.
A problem might arise if you really need to be
root to access that "file" but that can be "solved" with a judicious requirement to "sudo" your program
