Onedrive Files on Demand / Free up space

I spent quite a while searching but couldn't find anything so I thought I'd ask here: Is there a way in Hazel to set a file or folder moved to OneDrive (or Sharepoint) folder as Offline only? I have a few quite large files that are being generated and I'd prefer to move them to the OneDrive storage as I have plenty of space there (and constant issues with space on the local disk). Moving them over is easy enough, but I've yet to find a way not to need to do select all - rightclick - Free Up Space. I remember seeing a post somewhere about the commands needed to manipulate the states but can't seem to find them anymore. Nor do I know if it's safe to actually manipulate those files from the command line using a script.