aに1代入したいんですがどうすればいいですか?

function hoge(){
[int]$a;
function moge(){
$this.a = 1;
}
moge;
return $a;
}

hoge #