Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to run fuction as backgroup process?

$
0
0

How to call/run this function as background process?

*****************
function GetText {
param ([string]$target)
if ($target -eq "FORM") {$line = "rFORM"}
else {$line = "rREPORT"}
return $line
}

# call funtion
$tmp = GetText FORM

# show result
Write-Host $tmp


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>