Script put in autostart doesn't work

i managed to make it work;
it was a matter of creating the file with a .sh extension,make it executable(sudo chmod +x filename),
put it in home/username/bin(which is in $Path-i think that’s necessary),
then adding a “login script” in KDE autostart,which put a symlink in ~/.config/autostart-scripts/ which is the location for executing scripts at login for shell scripts.

now i wonder two things:
-what would happen if i run my laptop on “integrated(cpu)” through optimus manager;
the script would run anyway, so will it just generate an error of some sort?
-how can i pause/disable this script temporarily?is just through removing it from the autostart menu in kde?a check box or toggle button would be nice.