Get-OIDCToken

I am automating the creation of CONNECTED projects and need to use this Get-OIDCToken in order to make a final change to the project, when using Set-PWWorkAreaConnectionUserSync. I am stuck on how to get this to function as an unattended step in the script. Can this token be stored in any way that would allow for it to be read into the script similar to how other encrypted passwords can be pulled from text files etc?  

dave