BitLocker password prompt at machine bootup for a drive other than C

I am trying to encrypt my E drive using BitLocker with the password prompt appearing during boot, not after logging into Windows. The reason for this is that I need to run a script at machine boot which depends on the data stored on the E drive. And I do not want to log into Windows every time.

I tried encrypting the C drive and enabling auto-unlock for the E drive, but the issue is that after I enter the BitLocker password during boot and don’t log into Windows, the E drive remains locked until I log into Windows as well. I want the E drive to unlock immediately after entering the BitLocker password at boot, without needing to log into Windows.

Is this possible?