What, just WhatToDo = Command?

You need to parse out the parameters as your program requires.