The machine didn't learn anything, just executed your orders.
Imagine that you sit with your grandma in front of a PC (and let's assume she's not a SE). You fire up a terminal, give her the keyboard and dictate every keystroke necessary to write and execute a program (or do any other task for that matter). Does that mean that your grandma just learned programming? I think not. Learning implies being able to find and apply some rules which where not explicitly given.
What the philosoraptor is saying is that literally any computer program is machine learning, which is untrue.
An expert system is a system designed to simulate an expert. It's something you would seek advice from in some way. They're used in medical diagnoses and stock market trading, for example.