Here "Pilate" is a synecdoche for the person who wrote on the sign. Here "on the cross" refers to Jesus' cross. Alternate translation: "Pilate also commanded someone to write on a sign and to attach it to Jesus' cross" (See: [[rc://en/ta/man/translate/figs-synecdoche]])
You can translate this in an active form. Alternate translation: "So that person wrote the words: Jesus of Nazareth, King of the Jews" (See: [[rc://en/ta/man/translate/figs-activepassive]])