SQL Server command line usage? Is it possible?
Have you considered SQLCMD?
Here's an article on Using the SQLCMD command line utility.
You can execute adhoc SQL statements, or run .sql scripts.

The following example runs the C:\MyScript.sql script from the command line and outputs the queries and results to a text file located at C:\MyResults.txt.
C:\Windows&gt;sqlcmd -S NOTTINTRA3\SQL2005 -i C:\MyScript.sql -o c:\MyResults.txt -e