To get the Account uuid of the current Task during script runtime as a string variable. Use the following method:
param($CurrentAccountUuid)
Write-Host $CurrentAccountUuid
This will get a string variable like 75839be4-89e9-4c00-b507-e7e9418e3e62. Always start with the param() header as the first line of your PowerShell script. If so, you are able to access the current Account uuid anywhere in your script.