I feel that the easiest way to do this is by opening up Script Editor...
pasting the following in it. Which is a script that will restart the computer into windows. Make sure you change the password to yours though. all you have to do is double click it and it will automatically do everything for you. Leave everything like it is except for the line that says set adminpass to "****" - change the asterisks ( * ) to your password.
set adminpass to "*****"
tell application "Finder"
set iconPath to (get name of startup disk) & ":Applications:Utilities:Boot Camp Assistant.app:Contents:Resources:DA.icns" as alias
end tell
set askRestart to display dialog "Restart in Windows?" buttons {"Cancel", "Restart"} default button 1 with icon iconPath
set doRestart to button returned of askRestart
if doRestart is equal to "Cancel" then
quit
end if
if doRestart is equal to "Restart" then
do shell script "bless -mount /Volumes/BOOTCAMP/ -legacy -setBoot -nextonly; shutdown -r now" password adminpass with administrator privileges
end if
after this, go to file, export- name the file whatever you want- ex. BootToWindows.scpt.
In the left, click desktop, so it saves it there.
at the bottom, change the file format to Application so that it runs when clicked instead of opening.
if you ever need to edit it, you can right click the application, click show package contents, navigate to Contents, Resources, Scripts, and double click main.scpt, and it will open it in the scripts editor for editing.