mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Add datatype to param()
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#>
|
||||
|
||||
param([string]$Text = "")
|
||||
|
||||
if ($Text -eq "" ) { $Text = read-host "Enter the text to write" }
|
||||
|
||||
write-host -foregroundcolor red "$Text"
|
||||
|
Reference in New Issue
Block a user