Can anyone help me with this Parsing Error in my PowerShell function?
I have a PowerShell function where I'm getting a strange parsing error (it won't compile, both PowerGUI (the editor I use), and PowerShell (when I try to Import-Module)), give me a Parsing error.

Here's a link to pastebin with my code: [My Function @ Pastebin][1]

Here's a link to a picture showing the parsing-error-message: [Error message @ Imgur][2]

Anyone familiar with this parsing error? I tried deleting the `Write-Verbose`statements it complained about, but that didn't help any, it just jumped to the next one, even if it was inside a completely different codeblock. (E.G. `Process{...}` vs `End{...}`).


  [1]: http://pastebin.com/xca3inJ3
  [2]: http://imgur.com/O1c8o
Can anyone help me with this Parsing Error in my PowerShell function?
===

I have a PowerShell function where I'm getting a strange parsing error (it won't compile, both PowerGUI (the editor I use), and PowerShell (when I try to Import-Module)), give me a Parsing error.

Here's a link to pastebin with my code: [My Function @ Pastebin][1]

Here's a link to a picture showing the parsing-error-message: [Error message @ Imgur][2]

Anyone familiar with this parsing error? I tried deleting the `Write-Verbose`statements it complained about, but that didn't help any, it just jumped to the next one, even if it was inside a completely different codeblock. (E.G. `Process{...}` vs `End{...}`).


  [1]: http://pastebin.com/xca3inJ3
  [2]: http://imgur.com/O1c8o