I found the reference to the below script in mentioned article. If this is not script - please add a link or script snippet to the question & may ignore the below answer.
https://github.com/Azure/updatemanagement/blob/main/UM_Windows_Troubleshooter_Offline.ps1
I was encountering a similar issue when I ran the script directly - the window closed after the execution.
To overcome this, you will have to open the Powershell (Win Key + R) --> Powershell
In the Powershell window, Type the Path of the script along with the below mentioned parameters :
param(
[string]$automationAccountLocation,
[switch]$returnCompactFormat,
[switch]$returnAsJson
)
Output :