Pass information between independently running Powershell scrips
<p><strong>Sorry for being wage before</strong>. I'll try again:</p>

<p>The circumstances are too complicated to explain, but basically the problem is:</p>

<ul>
<li><strong>how to pass a string (max 20 chars) from one script, to another script</strong> running on the same machine.</li>
<li>the two scripts are running continuously in the background, on the <strong>same machine</strong>, under the <strong>same user context</strong>,
but <strong>can not be combined</strong>.</li>
<li>I <strong>can not dot-source</strong> one script in the other.</li>
</ul>

<p>I have done it by having one script create a file with the string in it, in a directory monitored by the other script. So when it appears, the other script reads the information.
It works, but it feels "dirty". :)</p>

<p>I was wondering if there is a "<strong>best practice</strong>"-way to pass information between scripts or at least a <strong>more elegant</strong> way.</p>

<p>Thanks.</p>