There are three issues you need to address in your script.
The first is the typo in the shebang line. the correct syntax for such a line would be
#!/path/to/interpreter -options and arguments. It must begin in the first character of the first line and ends with a newline.
bash is an acceptable shell for scripting (although it might be overkill in this case) so after fixing the first two characters it would be acceptable, but a couple options may be of use.
-e exits on any error forcing you to write better scripts and
-x shows what the shell is doing at every step although neither would have caught the issues in this case.
The two most common mistakes with shutdown are time and kind of shutdown, and you seem to have hit both of them. Shutdown's main feature is to shut down at a time. There are three ways to specify a time absolute, relative, and
now. Now is an alias of
+0 which means zero seconds from now and is most often what is wanted on single user systems. Shutdown's other main feature is that it supports multiple types of shutdowns for example halt, poweroff and reboot, but because shutdown predates automatic power management the default is to shut down to a single user mode. It used to be used so that after you kicked all the users off you could sync, unmount and check filesystems before actually powering the system down. It was also useful for doing other maintenance before switching back to a multiuser mode. It is not much used these days but is still the default. The man page will tell you how to select the type of shutdown.
Also sudo is not needed for the root user so you could skip it for the root user.