Background:
Suppose I have a powershell function that understands and interprets small_commands such as:
todolist.additem/title=shopping/body=get milk
Suppose further that I invoke the function like this:
myfunc [small_command goes here]
Question: Is there a way that I can type in the small_command and still have powershell invoke myfunc, even if I forget to prefix the small command with 'myfunc'? It seems like this could work if there is a way to trap "command not found" errors.
The general idea behind this question is the ability to recover from command not found errors by passing the offending command-line to a function that can try to "recover" from my input mistakes.
Note: Also welcome is any critique of this approach or alternative ideas.