universal bash + ksh command

I recently posted this and the answer I received was helpful, but here's my dilemma now:

I have a script that makes a call like this in ksh initially, but it also doesn an ssh to another machine to do the same. the default shell is bash on there. Is there a command universal to ksh and bash that will not give me errors? If I try to "ksh; command" it never returns from the ssh session. Any ideas?

Resort to a common utility - like find

find /path/to/files \( -name 'BeginFile*.sh -a ! -name '*Backup*.sh \) | xargs sh -c
find /path/to/files \( ! -name 'BeginFile.sh -a  -name '*.sh \) | xargs sh -c

If you use shell-specifc syntax you cannot make it work easily on two systems as you describe.