open a console
create any file with
sudo kedit myfile
then put this into

#!/bin/bash

modprobe etc etc
etc etc


then right click over myfile, properties, permissions and enable execute.
Now you have an script file.
To execute
sudo myfile