I’m guessing that Windows shell doesn’t use the same exact commands as a Linux-y shell. Guessing even further, I suspect it’s awk that isn’t installed by default, but certainly it could be mv or rm (I’m not a user of Windows shell).
In general, you could avoid this problem by not using a notebook to auto-generate your Python code and just using a text editor such as VSCode directly. Or from the notebook, exporting a .py file using the File menu.