Progress Bar Examples

As I’m making progress with UD, I’m exploring options of using a progress bar when a user starts a script for example. I haven’t found any good examples of somebody doing this if it’s possible.

Here is what I’m trying to do:

New-UDInputAction -Content @(        

                New-UDCard -Title “Results” -Endpoint {script.ps1 -vc $vc -cl $cluster -template $template}

How would I display progress of this script? As I can’t get the live output see here: Anyway to keep spaces and line breaks in UD?

I’ve tried messing with New-UDPreloader but I can’t seem to get it to work the way I want. Is what I’m asking even possible? Eventually would like to use this with getting the progress of PowerShell remote/ non-remote jobs as well.

Any help greatly appreciated.

Here is a example i found from developer

if ($Cache:Data -eq $null) {
New-UDPreloader
}
else {
New-UDChart -Endpoint { $Cache:Data … }
}
the progress bar is not as advanced like write-progress in powershell but dont know if it will be in future.