Issue with Powershell function written in $PROFILE path (stackoverflow.com)stack
20 points by Lithleo in stackoverflow.com · 4h ago · stack comments
function gethash { param([string]$string = '') if ($string -eq [string]::Empty -or $string -isnot [string]) { Write-Output 'input not valid' } else { (Get-FileHash -Algorithm sha256 $string).Hash | tee -Variable b } } I Have this function in my $Profile script. when i run gethas…