Cutting tool for M5 screws

I have no vise so made this tool to recut too long m5 screws. with grinder or metal saw