Function deploy-p4adauthscript { $xml = [xml](gc .\depots.xml) $xml.perforce.depot | %{copy perforceadauth.ps1 ("\\" + $_.hostname + "\"+ $_.svcrootdrive +"$" + "\" + "auth\")} }