Is there a way to use StyleCop 4.5 from the command line on an individual source file, like stylecop HelloWorld.cs
?
You can't. It's not a feature of stylecop, it only integrates with VS2008/2010 and MsBuild
There is this project at sourceforge that may do what you're looking for. DISCLAIMER: I have not tried it.