You can create a virtual environment on the USB drive and that will allow you to run cmd for the USB. The file would be something like 'cmd venv.bat'.