Skip to content

Instantly share code, notes, and snippets.

@Microsofttechies
Created April 16, 2015 17:45
Show Gist options
  • Select an option

  • Save Microsofttechies/0b5d8edb19b5a560fe0f to your computer and use it in GitHub Desktop.

Select an option

Save Microsofttechies/0b5d8edb19b5a560fe0f to your computer and use it in GitHub Desktop.
Calling exe from Powershell
Param
(
[string]$exePath = $null
)
write-host “Calling exe”
$startTime = Get-Date
Write-Host "Start time " + $startTime.ToString("u")
$exePath = $exePath
& $exePath
$endTime = Get-Date
Write-Host "End time " + $endTime.ToString("u")
write-host “End exe”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment