PowerShell Periksa Ekstensi File

$extension = [IO.Path]::GetExtension($file)
if ($extension -eq ".xml" ) { }
Av3