Use a double ampersand between the commands.

For example:

net stop  “IIS Admin” && net start “IIS Admin”

will restart “IIS Admin” service.

Advertisements