C# command-line helper