How to write scripts for openfile

I have write “cd ~/wfx-common-tools/test-feature” in script file but when I running the script file it isn’t open to cd direction. How to fix it??

root@swi-mdm9x28-wp:~# ./python3_cw.sh
hello

What is inside your python3_cw.sh?

#!/bin/sh
PATH=/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin;

cd ~/wfx-common-tools/test-feature
python3 cwtone_start.py

see here:

you need to use :
. ./python3_cw.sh