Hi,
I'm assuming there is no connection between the two scripts, so a string specified in one is not read into the other. But I have no idea how to link the two together so that the string can be outputted
The script Willimina provided provides a connection between the two. It sets up the external script to have access to ALL of the built in WordPress functions.