Add datatype to param()

This commit is contained in:
Markus Fleschutz
2021-07-15 15:51:22 +02:00
parent 35255539df
commit b97098fc42
109 changed files with 256 additions and 216 deletions

View File

@ -12,6 +12,7 @@
#>
param([string]$Text = "")
if ($Text -eq "" ) { $Text = read-host "Enter the text to write" }
write-host -foregroundcolor red "$Text"