PowerShell script doesn't get the text from the out file
<p>The following code doesn't put text into the out file when I run it. How do I correctly add the out file so that all the text from the shell gets copied to the out file?</p>

<pre><code>$connection = "localhost:19000"
$timeToRun = 60
$maxStabilizationTimeSecs = 180
$waitTimeBetweenFaultsSec = 10
$serviceName = "fabric:/OnServiceFabric.Policy.Deploy/PolicyService"
Connect-ServiceFabricCluster $connection
Invoke-ServiceFabricFailoverTestScenario -TimeToRunMinute $timeToRun -MaxServiceStabilizationTimeoutSec $maxStabilizationTimeSecs -WaitTimeBetweenFaultsSec $waitTimeBetweenFaultsSec -ServiceName $serviceName -PartitionKindSingleton
Pause | out-file c:\temp\results.txt
</code></pre>