#!/bin/bash

pk4complete() {
    readarray COMPREPLY < <($(which pk4) -complete "${COMP_WORDS[@]:1}")
}

complete -F pk4complete pk4
