Answer
There’s no need to install any script cause Illustrator has the Scissors Tool that will do just that. You will find it under the Erase Tool (or simply press C ).
Just select it and click the square’s anchor points:
Attribution
Source : Link , Question Author : Dims , Answer Author : Alin