Functions/Send-WOL.ps1


function Send-WOL {

    [CmdletBinding()]
    param (
        [Parameter(Mandatory)] [string] $MacAddress
    )

    Write-Verbose "$($MacAddress)"
    Start-Process "$($PSScriptRoot)\..\Resources\wakemeonlan\WakeMeOnLan.exe" -ArgumentList "/wakeup $($MacAddress)" -Wait -NoNewWindow -PassThru


}