Powershell Create Random String Python Functions Within Functions