$password = ConvertTo-SecureString 'Paper123!@#' -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential('INTRANET\sysadmin', $password)

Invoke-Command -ComputerName 192.168.0.6 -Credential $cred -ScriptBlock {
    $files = @('CHECKUPD.BAT', 'CTONW.BAT', 'DEPLOY.BAT', 'UPDATE.BAT')
    foreach ($file in $files) {
        $path = "C:\Shares\test\COMMON\ProdSW\$file"
        if (Test-Path $path) {
            $item = Get-Item $path
            Write-Host "$file - $($item.LastWriteTime.ToString('yyyy-MM-dd HH:mm:ss'))"
        }
    }
}
