The script allows you to pick 3 points in the scene.
The slice gizmo of the slice modifier of the selected object will be aligned to the picked points. When you run the script the SNAP will be automatically turned ON.
If the Shift key is pressed when you run the script the Slice plane will be aligned to the currently active grid. Works best if the script is ran from a toolbar button.