my $command='Set-ADUser '.$un.' -Replace @{thumbnailPhoto=([Byte[]](Get-Content '.$jpeg.' -Encoding Byte))}'; my $result = `c:\\windows\\system32\\windowspowershell\\v1.0\\powershell.exe -command "$command"`;