This is a bash shell script which will shutdown your external/discrete graphics card.