PDF document from Mail.app renaming

I’m having trouble with renaming a PDF. I find any PDFs sent to shortcuts from Mail.app are always named PDF Document.PDF. So I wanted to check for that at the start, and ask for a new name. (If not sending from Mail, you won’t need to rename though)

But doing what I have here it’s still stuck at PDF document.PDF. What is wrong here?

(Note the quick look and checking of name is for debugging, as I’ve been trying a number of things to get it working)

My goal here to to send files to proper folders in Keep It, and also save to iCloud so I can file them on my PC properly (no Keep It for Windows). But I’d like the files to not be generically named when they get there.

https://www.icloud.com/shortcuts/aa2079c560cf4ac8a70561e1ac207591