The previous line ($ErrorActionPreference = 'Stop';) is missing the ` character so the next line stays inside the PowerShell command.