Fortunately, Visual Studio Code has a little terminal you can use to run commands without needing to swap between windows.
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.