How to get pid of current script process

I have confirmed that the following works in sh, bash, csh, tcsh, and zsh:

do shell script “ps -o ppid= -p $$”