Add implementation of ws_command_get()