You don't need @ for variables

If you have this, you need @:

"C:\test\hi.txt"

If you have THIS (escaped already), you don't need @:

"C:\\test\\hi.txt"
Showing how to use arguments
Merge pull request #2 from DunNZ/master

Some more helping code for you