d

Open and Read Excel

How to open and read excel file in powershell

# supress error messages
$ErrorActionPreference = "SilentlyContinue";

function Get-UserInfo( $user )
{
    Write-Host "User $user";
}