NOTE: there is also a commandlet called "Read-SasFile" available to download a SAS file from a workspace at https://sourceforge.net/p/cmdlets4sas/ . And with "Write-SasFile" you can upload a file to your SAS workspace.