Need help with the command script

What would be the equivalent of below in the circleci

  • script: |
    echo “y
    $(WORKSPACE-REGION-URL)
    $(CSE-DEVELOP-PAT)
    $(EXISTING-CLUSTER-ID)
    $(WORKSPACE-ORG-ID)
    15001” | databricks-connect configure

I tried the above under the "command"and with the variables defined under context, however its not working.
command: |
echo 'y
$WORKSPACE-REGION-URL
$CSE-DEVELOP-PAT
$EXISTING-CLUSTER-ID
$WORKSPACE-ORG-ID
15001 | databricks-connect configure | databricks-connect test