Command execution from other directory

Hi,

I need to execute some commands in a directory.

script called test.sh from /usr/bin/

and the commands which are there in the script needs to be executed from /etc/ and come back to another directory /lib/ and execute some commands which are there in the script.

Hope you understand the issue.

cat test.sh

cd /usr/bin
commands
cd /etc
commands
cd /lib
commands