I have set a variable with some value, when i am displaying it value with echo command it displays the value correctly but when i use this variable inside command it does not work . can anyone please help in this. 
echo $hiteshobject
ameras0009.abc.com:/D 'ameras0009.abc.com [/D]'
26:/home/a-hkat # omnidb -winfs "${hiteshobject}"
No objects were found.
26:/home/a-hkat # echo "${hiteshobject}"
ameras0009.abc.com:/D 'ameras0009.abc.com [/D]'
26:/home/a-hkat # omnidb -winfs ameras0009.abc.com:/D 'ameras0009.abc.com [/D]'
SessionID        Started  Duration Object Status                   Size [KB]      NumberOfErr
=============================================================================================
2017/02/20-379       03:00:28 08:14:24 Running                           3769280          0
2017/02/20-221       03:00:28 00:13:25 Completed                         3769280          0
2017/02/19-122       03:00:31 30:07:24 Failed                                  0          0
This article describe to use array . Actually i am new to bash scripting so can please help me how i can use array in my case.
Thanks in advance.
