Using Subexpressions Within Strings In Powershell

echo "the length is $($list.length)"
echo "today is $(Get-Date)"
$i = 1
foreach ($jobId in $jobIds) {
if($jobIds.length -gt 1) {
Write-Host "-- Dwarf Counts: Job #${i}/$($jobIds.length) --" -backgroundcolor DarkYellow-foregroundcolor Magenta
$i++
Pause}
}

LINKS

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store