#!/bin/bash cat > test.js << EOF var task = new Task(); task.activate.bind(null).apply(); exit(0); EOF $TILDEFRIENDS test.js