createSearchIndex is not working from mongosh connected from window machine

it is sample which want create actually i want to create below syntax with replace of above json values
{
“mappings”: {
“dynamic”: true,
“fields”: {
“Embedding”: {
“dimensions”: 1536,
“similarity”: “cosine”,
“type”: “knnVector”
}
}
}
}

this is working for manually adding on database but i want to try with help of cli can be generate and see into atlas search index section. there is currently one added. By the query generate CLI command I want to see in that section.
Thank you