@echo off

set PYTHON=%~1
set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%

python -m pytest
python -m flake8

set PYTHON=%~1
set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%

pytest
flake8

Use pytest and flake8 commands.
Use pytest and flake8 commands.