doc: sample: add/update sample script files
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
func test-function($name) {
|
||||
echo "Hello, $name!"
|
||||
echo "Hello, $name! $(2 + 4 + 2) wow"
|
||||
}
|
||||
|
||||
# Example of instantiating an FX runtime object.
|
||||
$obj = new-object -type-name fx.string -arguments "John Doe"
|
||||
|
||||
$hash = @{
|
||||
1 = 'one'
|
||||
2 = 'two'
|
||||
'three' = 3
|
||||
}
|
||||
|
||||
test-function -name $obj
|
||||
|
||||
Reference in New Issue
Block a user