A better solution than xp_cmdshell is to use the SQL agent job step of type "CmdExec" or "Powershell".
CmdExec will be my preference for a single line call to BCP.exe . Sysadmin credentials are required to create a job step.
Powershell is your answer if you need to perform any additional tasks, for example, to clean the extracted file and copy it to a network share.
source share