No, this script just checks for so called magic packets and generates commands to start VMs and Containers. It can‘t run when the host is switched off, as no OS is running in that case.
The host itself shouldn‘t need any script or packages to be able to wake up on LAN magic packets. You should...