I have a machine with two separate drives, the main drive (call it C:) I am constantly reimaging with different versions of Windows using PowerShell and the other drive (call it D:) I am keeping a static image of Windows 7. Currently I have the main boot drive set as the C: drive and any time I need to boot from the D: drive I manually restart the machine and choose the boot drive from the BIOS menu.
Is there a way that a PowerShell script would be capable of setting which drive to boot from (i.e. change the boot drive from C: to D:)?