How to download and run an exe from URL

i want to create an updated Update: Windows Defender Virus Definitions v1.419.318.0 - Windows (x64)

whats the best way to get it?

// Download: prefetch “newfilename” sha1:needs updated size:needs updated https://definitionupdates.microsoft.com/newURL sha256:needs updated // Install: override wait hidden=true completion=job wait __Download\newfilename -q // End

how do i get the sha1 and sha265 as part of a process?