This command copies the boot files to the USB drive.

#Requires -RunAsAdministrator

That creates a bootable Windows 7 USB in under 2 minutes.

Running Windows 7 from a portable USB drive is a practical way to keep an older environment handy for testing or system recovery without touching your main hard drive. Because Microsoft ended official support for Windows 7 in 2020, this "live" setup is often safer than a full installation on modern hardware. How to Create a Windows 7 Portable USB Drive

The you need to run inside Windows 7