Foothold in Starting Point

Hi, when i am trying to send type C:\Users\sql_svc\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt .
The mssqlclient throws me You cannot call a method on a null-valued expression. at several chars in the script. How i can fix this. Sorry for my bad english… (-;

Solved it… Thanks and sorry. I have forgot to copy it complete.