SQLCMD Returning Named Pipe Error
Server name and instance name should be separated by a backslash, not a forward slash. Try:

sqlcmd -U myname -P mypwd -S mysys\SQLEXPRESS -d master -Q "Select count(*) from sys.databases"