Hello @krishnaarani
From what I understand, there is two questions here :
1.
Your projectKey can be retrieved from your SonarQube project overview, here :
Yes, with the scanner for MSBuild, you pass all parameters from the command-line, exactly the way you did it.
Hope to help.
Regards,
Christophe