Using windowsform: PowerShell, way to reload a script? (Like close and start script?) on newest questions tagged winforms – Stack Overflow
I have added a simple autoupdater function to my PowerShell script, so that when I make a change and upload it to my website, it get’s automatically downloaded to the user computer and replaces the .ps1 file – and voila the user has the newest version.
Though, the user has to close the PS script and start it again before the runs with the newest file.
Is there a function that I can implement that restarts the PS script? Just like when the user closes and reopens the PS script?
Using windowsform: using-windowsform