We should be exec'ing that process, but it seems that Poe the Poet does not support this for shell tasks: https://poethepoet.natn.io/tasks/task_types/shell.html#available-task-options
Looks like this can be solved with https://poethepoet.natn.io/tasks/task_types/switch.html.