#!/bin/bash WindowsEntry=$(efibootmgr | grep "Windows Boot Manager" | awk '{print $1}' | sed -e 's/Boot//g') efibootmgr -n $WindowsEntry reboot