Refactored RemoteCommand to use tokens for common string values.