Missing expression after unary operator ‘-‘

Worked through this error the other day. Received this error when trying to use the back-tick character for multi-line commands in PowerShell. The good news is that it’s easy to fix. My issue was that I had a space character after the back-tick that was apparently interfering with command execution. Simply remove this space and the code will execute as expected.

Until next time,
DefiantOwl

483 total views, 3 views today

Leave a Reply

Your email address will not be published. Required fields are marked *