It would be helpful if there was an indicator when setting up migration if the post / pre script’s file name doesn’t match the Target file name.
Found this out the hard way by duplicating a prior deployment and change the name of the file but the post migration script ran in the wrong file.