As olly said, your doctor is attempting to activate Hoffman's sign when he does this. He/she is is testing for disruption of upper motor neuron function (in your brain) to the motor nerves controlling the muscles in your hands and arms.
Don't be afraid to ask your neuro why he does odd little things like this. You can learn a lot about ALS and how it works by getting explanations for the things that neuros do during a clinical exam.