How can i change this string format into a callable function?
[string]::Format("param {0} param {1}, param {2} ",$param0, $param1, $param2)
So for example, I don't need to use [string]::format() each time i want to write-host
Something like the below.
logMessage("param {0} param {1}, param {2}", ,$param0, $param1, $param2)
Just not sure how to turn the [string]::format into a function.