Executing the script in Linux returns this errors:

Executing the script in Windows returns this errors:

The first one says that it doesn't recognize SecureBoot. The second one is related with the drives.
I have tested both scripts in virtual machines and the Linux one in normal and gets the same errors.