Polybar battery module not loading

Does it work with this module (you will probably need to install acpi) ?

[module/battery-alt]
type=external/script
exec=acpi | cut -d ' ' -f 4 |grep -E "*%" 2>/dev/null
interval=30
tail=true