Create a folder from the path of a file and move the file inside

Try this:

Copy MOVE CREATEFOLDER={filepath$|..|nopath|noterm} FLATVIEWCOPY=single

If needed: How to use buttons and scripts from this forum