added separate code snippets for curl handling on windows and Unix. Quotes are handlel differently. Need to be escaped in Windows cmd ;(