How to deal with quoted and unquotes strings when executing it in command prompt?

You can use raw string. look this tutorial.

var inputstring string = `"C:\Program Files (x86)\7-Zip\7z.exe" x c:\temp\test.zip -oc:\temp\test`