The only requirement for $Input
is that you have a -Process
block
🐒> function doubleIt { process { $Input * 2 } }
4, 'cat', 34 | doubleIt
# output:
4
4
cat
cat
34
34
The only requirement for $Input
is that you have a -Process
block
🐒> function doubleIt { process { $Input * 2 } }
4, 'cat', 34 | doubleIt
# output:
4
4
cat
cat
34
34