You can connect to Genymotion Shell and interact with a virtual device from a command prompt using the commands defined in section Interacting with virtual devices.
Options below are specific to the command prompt:
-h: displays the list of available options.
-r ip_address: connects to a given virtual device.
-c "command": runs the command on the selected virtual device and returns corresponding values.
-f file: runs the content of the file on the selected virtual device and returns corresponding values line by line.