This is my function for finding the square of a value:
function Get-Square($value)
{
$result = $value * $value
return $result
}
$value = Read-Host 'Enter a value'
$result = Get-Square $value
Write-Output "$value * $value = $result"
PS C:\Users> .\Get-Time.ps1 Enter a value: 4 4 * 4 = 4444
Why is the result 4444 and not 16? Thank you.