> PS C:\> get-content $CookieFile
The []s are getting you in trouble as they look like a wildcard. Try:
PS C:\> get-content -LiteralPath $CookieFile
Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at:
Windows PowerShell
Visit the Windows PowerShell ScriptCenter at:
Scripting with Windows PowerShell