Edit PowerShell script while it's running

Viewed 505

Apparently, editing a Linux shell script while it is being executed results in an undefined behavior.

What happens when you edit a PowerShell script while it is being executed?

1 Answers

PowerShell parses everything from top to bottom once and never goes back again.
Once it's in, it's in :)
If you need to reload as example, a PowerShell module into a current session you have to use the -Force flag.

Related