Correct. You should be able to alter it's state before you run that portion of the script and when that portion is done switch it back.