One change: Is it possible to change the script so that it creates a more complete commandline, like:
DISPLAY=:0 rdesktop -f -uUSERNAME -pPASSWORD -dDOMAIN IP_ADRESS
The DISPLAY=0: before the rdesktop command is needed to actually connect to the local display (at least for me)