If anyone else comes across this thread while searching, I did this via the following method which I found cleaner:
New-UDButton -Text ‘Refresh’ -OnClick {
invoke-udredirect -url “/pagename”
}
If anyone else comes across this thread while searching, I did this via the following method which I found cleaner:
New-UDButton -Text ‘Refresh’ -OnClick {
invoke-udredirect -url “/pagename”
}