I have created a form which takes input (like server name, file name, share location, etc) and based on the input values it runs a PowerShell script on mentioned server and create a file backup to the required share.
Logic I used is when one submit the form its input action is to show a card, listing all the input values(for verification) and a button which when clicked run the script, perform its task and logs entry in the database about success or fail. It is working fine.
My aim is to show some kind of status update when script is complete. Progress bar would be great. If not any indication when script starts and complete. I am new to PowerShell so not able to understand how to use new-udpreloader here. Tried to create a model or table inside the card which check for log entry in database every 5 seconds and display it but able to get it work.
Right now its confusing for user to know whether script is running or not.
In case it is not possible from what I have done, is there any other approach to get this done? i.e. take input run script and get update.