You can actually get syntax coloring for PowerShell if you add this line before your code:
<!-- language-all: lang-powershell -->
Demo:
$include = @("*.csv", "*.txt","*.dat")
$oldday = (Get-Date).AddDays(-2)
$path = "C:\TESTING\tester\test1\testfiles"
$Allfiles = Get-Childitem -Path $path -include $include -recurse| Where {!$_.PSIsContainer -and ($_.CreationTime -gt $oldday)} | Select-Object Fullname
foreach ($file in $Allfiles)
{
$file1 = $file.Fullname
$foldername = Get-ChildItem -Path $file.Fullname
$input = $foldername.Directoryname
$Mothername = Get-Item -Path $input
$output = $Mothername.Parent.Fullname
$output = "$output\sc"
Write-Host "The Filename: $file1"
Write-Host "The FolderName: $input"
Write-Host "$output"
$argument = "$input $output $input"
}
For more information, see What is syntax highlighting and how does it work?.