Flask run error, not working – term not recognised

Solution 1
pip install flask
python -m flask run
Solution 2
set FLASK_APP=application.py
set FLASK_DEBUG=1
flask run