Time limit of powerManagement.powerDownCommands?

I want to run commands that will last maybe 15s long before shutting down or suspending. Is that supposed to work with powerManagement.powerDownCommands? Or should I use systemd inhibitors?