This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-NameInBinary { | |
param( | |
[parameter(DontShow)] # hide paramter to allow read host to promt for name(s) | |
[string]$name = $(read-host -Prompt "Enter Name(s)") | |
) | |
# Pass name from function to screen | |
"Your Name '{0}' in Binary is : " -f $name | |
# get the value of whitespace in binary to seperate names, surnames or middle names |