Validates a command string to ensure it does not start with an option or contain a relative path.
The command string to validate.
Throws an error if the command name looks like an option or a relative path.
Validates a command string to ensure it does not start with an option or contain a relative path.