doc: sample: add/update sample script files

This commit is contained in:
2026-05-10 14:20:08 +01:00
parent 3398de6fa9
commit 94048c6508
3 changed files with 181 additions and 1 deletions
+7 -1
View File
@@ -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