Since the workpiece seems to to be too long to be held vertically in the vice, tghe technique has to be, using an End Mill in a vertical millinbg machine:
Machine first flat to the required dimensions.
Rotate bar until the new face is vertical -check with a square.
Machine second flat.
Repeat, to produce a side parallel to the first.
Repeat to produce fourth side parallel to the second.
Deburr and job’s a good ‘un
Howard