In your current script, the nohup block uses a here-document (<<'EOF') with single quotes, which prevents variable expansion inside the block. As a result, $myVariable is not expanded, and command_1 receives the literal string $myVariable instead of its value.
How to Fix It
Option 1: Remove the Single Quotes
If you want the variable to be expanded, remove the single quotes around EOF: