I made a New-WPFMessageBox message with a model function, how can I take the final command (which is in the last line):
New-WPFMessageBox -Content $StackPanel -Title "Commit ID:$(build.sourceversion) " -TitleBackground LightSeaGreen -TitleTextForeground Black -ContentBackground LightSeaGreen
and forward it to all users of the server
Another idea: is to run a simple command in powershell in every session of a connected user:
powerShell -sta -file 'E:\Script-Popup\Popup-Message - Done.ps1'
full script: https://pastebin.com/raw/HzqGEfLU