Get-MACtoIP.psm1

New-Module  -ScriptBlock {
function Get-MACtoIP {
    Write-Warning 'Make sure you enter the mac with "-" e.g. 00-80-f0-6e-6f-d0'
    param (
        [Parameter(Position = 0, Mandatory = $true)][String]$MACAddress
    )
    Invoke-Command hdq-dc3,hdq-dc1 {Get-DhcpServerv4Scope | Get-DhcpServerv4Lease | where ClientId -eq $MACAddress}
    }
} -name Get-MACtoIP | import-module | get-module