When I run a command directly on the server, it works fine. However when run from the Command line task type, it fails.

Keep in mind that the account your service application pool is running as will need proper administrative rights on the box in order to execute the command regardless of username used in the config.