in reply to Invocation in PowerShell not working

$_ is being interpolated by the powershell (it means The current pipeline object, used in script block).

Try it with single-quotes. I have see some conflicting references, saying that non-interpolated strings are enclosed in backticks (They call them Apostrophes) or this character ’’, but single-quotes should work.

     "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom

  • Comment on Re: Invocation in PowerShell not working

Replies are listed 'Best First'.
Re: Invocation in PowerShell not working
by matejhowell (Initiate) on Mar 14, 2008 at 12:19 UTC
    Thanks! That did it!