How do you execute a command which includes special characters from within bash script?

Hi, I'm trying to execute this command from within a bash script, but I cannot seem to figure it out. Copy-pasting it manually works.
Any help would be appreciated.
    configure_gitlab_runner () {
        'docker-compose exec gitlab-runner-container \\
            gitlab-runner register \\
            --non-interactive \\
            --url "$gitlab_url" \\
            --registration-token "$gitlab_registration_token" \\
            --executor docker \\
            --description "Gitlab Runner" \\
            --docker-image "docker:stable" \\
            --docker-volumes /var/run/docker.sock:/var/run/docker.sock'
    }    
Was this page helpful?