It can be done, but it’s not easy and not designed for an environment where students moved around to different places a lot. You need to have them log in and configure OneDrive by signing in, then have a second script on next login for the redirects.
Not too bad if users generally use the same devices in that classroom every time, but a real hassle if they have to login twice every time they use a new device.