Modified `shell` API method.

Removed "pwd" and "input" parameters and added them to "options".