new-ncflexcache commandlet works only for 9.8 and older than that. May i know what is the latest powershell command let for flexcache volume creations on 9.12.X ontap versions?
I'm not sure what the latest PowerShell command for FlexCache volume creation is but if you have trouble automating a task with the native CmdLet's you can always using Invoke-NcSystemApi via ZAPI or use the REST CLI. Here is an example (you would obviously need to change the command and REST method)