How to download Windows 10 ISO with curl

When clicking on the 32 bit or 64 bit download links, you will notice the URL is as follows:

https://software-download.microsoft.com/pr/Win10_21H2_English_x64.iso?t=ijfidj7334-776c-5jhf-j84d-kjd77322hbdb&e=ijidjsin3&h=70djidjeddd4a01a6952381d68362nndjjd

To download the ISO with curl, simply surround the URL with single quotes and build the curl command as follows:

curl --location --remote-name 'https://software-download.microsoft.com/pr/Win10_21H2_English_x64.iso?t=ijfidj7334-776c-5jhf-j84d-kjd77322hbdb&e=ijidjsin3&h=70djidjeddd4a01a6952381d68362nndjjd'