You've got yourself in a bit of a mess there.

I think this is what you want:
Code:
$=SetOption("WrapAtEOL","ON")
$SQLPath = 'c:\Program Files\Microsoft SQL Server\80\Tools\Binn\'
$ShellCmd = '"'
+ $SQLPath
+ 'osql.exe" -E -Q "BACKUP DATABASE [TestRepository] TO [TestRepository_Backup] WITH INIT , NOUNLOAD , NAME = N'
+ "'TestRepository_Backup'"
+ ', NOSKIP , STATS = 10, NOFORMAT"'
"COMMAND TO EXECUTE:" ? $ShellCmd ?



Are you sure about the two "n"s in "..\Binn" ?