If you really want to do it the way that you have it - you can probably do via /C for cmd.exe ( cmd /c "rd /q /s whatever" ) and spawn that instead of trying to spawn the nonexistent RD. Putting a /? after cmd in a command prompt will show you all the options available.
But be warned, as wysota mentioned. It's not a good idea.
Bookmarks