You have to modify the code to your origin and destination folders accordingly.
The * are wildcards that applies all inclusive i.e. *.jpg is all the jpegs in that folder or directory or drive Path "C:" would be all directories\subdirectories\files.jpg of C drive.
Bit of Googling on your part and you are good to go.
I prefer to use Notepad++ which is M$ Notepad & Word on Steroids!
When you save the Batch script its whatever name you wish with the .bat extension. The filetype when you save has to be All
For PowerShell extension is .ps1 and save is all filetypes again.
My Computer
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD