WindowsPowerShell他のファイルを読み込む

【改訂新版】 Windows PowerShell ポケットリファレンス

【改訂新版】 Windows PowerShell ポケットリファレンス

Windows PowerShellクックブック

Windows PowerShellクックブック

func.ps1

function funcA($msg){
	Write-Host $msg
}

main.ps1

#実行するスクリプトのパスから、相対のファイルを読み込む
. (@(Split-Path $myInvocation.MyCommand.path) + '\func.ps1')

#func.ps1の関数を呼び出す
funcA AABBCC