$MyInvocation.MyCommand.Path is $null in PowerGUI script editor
- by Polymorphix
When trying to debug my powershell script in the powerGUI script editor (2.0.0.1082) the $MyInvocation.MyCommand.Path is $null.
It works when running the script via powershell.
Running it in Powershell_ise.exe (on one of our servers) also works fine.
Have anyone else had the same problem or know what's wrong?
Here's the my powershell version:
…