Added open and close commands to handle more devices by single script, commands returns also the time to complete, output simplified to make scripts on it

Change-Id: I55ae9794152ad53b47a8b64a7478865339254bd8