I know this is an ancient post, however I came across it when searching for a way to get process information into SQL Server. This method is fundamentally flawed as it seems WMIC does not format CSV files correctly. It would be much better to go via XML as demonstrated here.