You can set up a group, for example.
#!/bin/bash
(
Command1
Command2
etc..
)
subshell() {
echo "this is also within a subshell"
}
subshell
(i) creates a subshell in which you run a group of commands, otherwise a simple function will be executed. I do not know if POSIX is compatible (s).
Update. If I understand your comment correctly, you want to use the option -cwith bash, for example.
/bin/bash -c "Command1 && Command2...." &
source
share