This string concatenation is messed up. It should look like this:
WScript.Echo "Missing parameters. String AppPathAndName " & _
"String ShortcutName Boolean OnStartMenu." & vbCr & vbCr & _
"Example cmd.exe CMD false" & vbCr & vbCr & _
"Example %windir%\system32\SnippingTool.exe SnipIt false"
You must use both the line continuation (_
) and the string concatenation (&
) operators to concat strings across multiple lines in VBScript. Make sure all string literals are closed (every quote has a matching closing quote on the same line).