Awesome. That worked for me. I was able to download a text file, JPG, and RDP file. Thanks @adam
I also added a button to the content of the UDElement to keep the button feature and create a download button:
New-UDElement -Tag a -Attributes @{
href = “/PublishedFolder/File1.txt”
download = "File1.txt"
} -Content {
New-UDButton -Text "Download"
}
@LinuxGuy give this code a try!