$scriptDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)

if(Test-Path $DeployPath)
{
    Write-Host "Removing Directory Found at $DeployPath"
    Remove-Item $DeployPath -Force -Recurse
    Start-Sleep -s 2
}

Write-Host "Creating Directory at $DeployPath"
New-Item $DeployPath -Type container

Write-Host "Deploying to $DeployPath"
Copy-Item "$scriptDir\Content\*" $DeployPath -Force -Recurse
$scriptDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)

if(Test-Path $DeployPath)
{
    Write-Host "Removing Directory Found at $DeployPath"
    Remove-Item $DeployPath -Force -Recurse
    Start-Sleep -s 2
}

Write-Host "Creating Directory at $DeployPath"
New-Item $DeployPath -Type container

$ServiceBouncer = Get-Process ServiceBouncer -ErrorAction SilentlyContinue
if ($ServiceBouncer) {
    Write-Host "Application Running, Attempting to Stop"
  $ServiceBouncer | Stop-Process -Force
}

Write-Host "Deploying to $DeployPath"
Copy-Item "$scriptDir\Content\*" $DeployPath -Force -Recurse
Update Deployment script to try and stop if running
Update Deployment script to try and stop if running
