sqlagent job - using system folder path with CmdExec
SQL Agent doesn't shell out the command like that.  You'll need to write a batch file with the system variable in it, then call the batch file from the SQL Agent job.  The system variables don't get resolved if they are actually in the agent job step.