MattHodge/Graphite-PowerShell-Functions

PowerShell error

shamer1 opened this issue · 2 comments

Absolute PoweShell noob here and this is probably to wrong place to ask but, when trying to execute . .\Graphite-PowerShell.ps1 I receive the following error:

The '<' operator is reserved for future use.
At C:\graphite\Graphite-PowerShell.ps1:120 char:19
+           </div> < <<<< !-- /.select-menu-item -->
+ CategoryInfo          : ParserError: (<:Operato
+ FullyQualifiedErrorId : RedirectionNotSupported
  • I've made sure to Set-ExecutionPolicy RemoteSigned
  • and tried Set-ExecutionPolicy Unrestricted
  • I've tried to Google around for PowerShell advice and failed.
  • I dug through the .ps1 file and see numerous < so I figure my powershell isn't configured correctly.
  • Launched PowerShell as Administrator
  • I even tried it in the PowerShell ISE thingy

Is there anything you can advise ?

Thanks in advance!

Hi @shamer1, it looks like when you downloaded the Graphite-PowerShell.ps1 file, you grabbed some HTML code as well (the tag).

Try grabbing the RAW version of the file - https://raw.githubusercontent.com/MattHodge/Graphite-PowerShell-Functions/master/Graphite-PowerShell.ps1

Closing due to no response.