Created Function in IOProgram to Test Valid Commands