build1.ps1

# In your project root
$src = "$PWD"
$dst = "C:\repos\OMG.PSUtilities_temp"
Copy-Item -Path $src -Destination $dst -Recurse -Force

Rename-Item "$dst\OMG.PSUtilities.psd1" "OMG.PSUtilities_temp.psd1"

if (Test-Path "$dst\OMG.PSUtilities.psm1") {
    Rename-Item "$dst\OMG.PSUtilities.psm1" "OMG.PSUtilities_temp.psm1"
}

RootModule = 'OMG.PSUtilities_temp.psm1'

Import-Module "$dst\OMG.PSUtilities_temp.psd1" -Force