Open kingofi88 opened 2 years ago
The problem with this line is that the hyphens are expected by PowerShell 5.1 to be standard minus hyphens (U+002D), but in this line (and only this line) they are en_dash characters (U+2013). This looks like some sort of automatic character replacement like the one in Microsoft Word for instance.
I downloaded the script from GitHub and PowerShell ISE shows weird symbols instead of the hyphens.
$Schedule =New-CMSchedule –RecurInterval Days –RecurCount 7 Needs to be $Schedule = New-CMSchedule –RecurInterval Days –RecurCount 7