Creating Custom Commands

I am creating bash scripts and placing them in bin to be executed as commands. I have had no problems until my most recent command. I am attempting to create a command to restart network-manager.

My code:

#!/bin/bash sudo service network-manager restart 

this runs fine is run as the root user. If I run it as a non-root sudoer, the command prompts for a password and then fails with the following response (the command i made is called resnet):

user2@pavilion: resnet Failed to restart natwork-manager.service: Unit natwork-manager.service not found. 

Any help appreciated.